physics::ChildObject< d, Parent > Class Template Reference

#include <child_object.h>

Inherited by physics::Area, and physics::Volume.

List of all members.

Public Member Functions

Vector getPosition () const
void setPosition (const Vector &p)
Vector getLocalPosition () const
void setLocalPosition (const Vector &p)
Orientation getOrientation () const
void setOrientation (const Orientation &o)
Orientation getLocalOrientation () const
void setLocalOrientation (const Orientation &o)
void localTranslateInPlace (const Vector &v)


Detailed Description

template<typename d, typename Parent>
class physics::ChildObject< d, Parent >

ChildObject acts as a frame of reference: it has a position and orientation relative to its parent.

Member Function Documentation

template<typename d, typename Parent>
Vector physics::ChildObject< d, Parent >::getPosition (  )  const [inline]

Get position in world coordinates.

template<typename d, typename Parent>
void physics::ChildObject< d, Parent >::setPosition ( const Vector &  p  )  [inline]

Set position in world coordinates.

template<typename d, typename Parent>
Vector physics::ChildObject< d, Parent >::getLocalPosition (  )  const [inline]

Get position in local coordinates (relative to parent).

template<typename d, typename Parent>
void physics::ChildObject< d, Parent >::setLocalPosition ( const Vector &  p  )  [inline]

Set position in local coordinates (relative to parent).

template<typename d, typename Parent>
Orientation physics::ChildObject< d, Parent >::getOrientation (  )  const [inline]

Get orientation relative to world.

template<typename d, typename Parent>
void physics::ChildObject< d, Parent >::setOrientation ( const Orientation &  o  )  [inline]

Set orientation relative to world.

template<typename d, typename Parent>
Orientation physics::ChildObject< d, Parent >::getLocalOrientation (  )  const [inline]

Get orientation relative to parent.

template<typename d, typename Parent>
void physics::ChildObject< d, Parent >::setLocalOrientation ( const Orientation &  o  )  [inline]

Set orientation relative to parent.

template<typename d, typename Parent>
void physics::ChildObject< d, Parent >::localTranslateInPlace ( const Vector &  v  )  [inline]

Translate local position while leaving world position unchanged.


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

Generated on Thu Apr 23 22:51:40 2009 for Large Polygon Collider - Modular 2D/3D Physics Engine by  doxygen 1.5.6