Spatial Class Reference
[Nodes and Scene Objects]

Provides simple local spatial transformation methods. More...

#include <Spatial.h>

Inheritance diagram for Spatial:

Inheritance graph
[legend]
Collaboration diagram for Spatial:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Spatial ()
 Constructs a new Spatial object at position (0, 0) and with a rotation of 0.
 Spatial (const Spatial &copy)
 Copy constructs a Spatial object at the specified Spatial's location.
Vector2flocalTranslation ()
 Get a reference to the local translation for this Spatial.
const Vector2flocalTranslation () const
 Get a const reference to the local translation for this Spatial.
float & localRotation ()
 Get a reference to the local rotation for this Spatial.
float localRotation () const
 Get the local rotation for this Spatial.


Detailed Description

Provides simple local spatial transformation methods.

This class is used as a base class for the Node type and does not usually need to be instantiated directly. It only provides transformations at the local level.

See also:
Node

Member Function Documentation

Vector2f& Spatial::localTranslation (  )  [inline]

Get a reference to the local translation for this Spatial.

Note the Spatial can be modified through this reference, for example:

 Spatial mySpatial;

 mySpatial.localTranslation().x = 5.0f;
 mySpatial.localTranslation() += Vector2f ( 1.0f, 1.0f );

See also:
Vector2f

const Vector2f& Spatial::localTranslation (  )  const [inline]

Get a const reference to the local translation for this Spatial.

See also:
Vector2f

float& Spatial::localRotation (  )  [inline]

Get a reference to the local rotation for this Spatial.

Note the Spatial can be modified through this reference, for example:

 Spatial mySpatial;

 mySpatial.localRotation() += 0.1f;


The documentation for this class was generated from the following file:

Generated on Fri Feb 22 15:56:24 2008 for Scene2D by  doxygen 1.5.5