irr::newton::PosRot Class Reference

This class is used to store position and rotation. More...

#include <pos_rot.hpp>

List of all members.

Public Member Functions

void add (PosRot p)
void add (irr::core::vector3df pos, irr::core::vector3df rot)
 PosRot (PosRot &p)
 PosRot (irr::core::vector3df pos, irr::core::vector3df rot)
 PosRot ()
 default constructor. set position and rotation to 0,0,0
 ~PosRot ()
 destructor

Public Attributes

irr::core::vector3df position
irr::core::vector3df rotation


Detailed Description

This class is used to store position and rotation.

I write it to management a thing that require position and rotation but not scale. So using a matrix4 will be increase used RAM without reasons


Constructor & Destructor Documentation

irr::newton::PosRot::PosRot (  )  [inline]

default constructor. set position and rotation to 0,0,0

irr::newton::PosRot::PosRot ( irr::core::vector3df  pos,
irr::core::vector3df  rot 
) [inline]

constructor

Parameters:
pos the position
rot the rotation

irr::newton::PosRot::PosRot ( PosRot p  )  [inline]

copy contructor

Parameters:
p the object to copy from

irr::newton::PosRot::~PosRot (  )  [inline]

destructor


Member Function Documentation

void irr::newton::PosRot::add ( PosRot  p  )  [inline]

get a PosRot object and add it to the current position and rotation

Parameters:
p the PosRot object to add
Returns:
none

void irr::newton::PosRot::add ( irr::core::vector3df  pos,
irr::core::vector3df  rot 
) [inline]

get 2 vectors and add 1 to position and 1 to rotation

Parameters:
pos the vector to add to position
rot the vector to add to rotation
Returns:
none


Member Data Documentation

irr::core::vector3df irr::newton::PosRot::position

the position

irr::core::vector3df irr::newton::PosRot::rotation

the rotation


The documentation for this class was generated from the following file:
Generated on Fri Dec 15 16:58:33 2006 for IrrNewt by  doxygen 1.5.1-p1