version 3.3

VRS::Rotation Class Reference

Rotation. More...

#include <vrs/rotation.h>

Inheritance diagram for VRS::Rotation:

VRS::Transform VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 Rotation (const Vector &axis=Vector(1, 0, 0), const Vector &center=Vector(0, 0, 0), double angle=0)
void setAxis (const Vector &)
Vector getAxis () const
 The rotation axis.
void setCenter (const Vector &)
Vector getCenter () const
 The rotation center.
void setAngle (double)
double getAngle () const
 The rotation angle is defined in degrees [0..360].
virtual const Matrixmatrix (Engine *engine=0) const
 The matrix that represents the rotation.
 VRS_TYPEINFO (Rotation, Transform)
 VRS_SERIALIZABLE (Rotation)


Detailed Description

Rotation.

Constructor & Destructor Documentation

VRS::Rotation::Rotation ( const Vector axis = Vector(1, 0, 0),
const Vector center = Vector(0, 0, 0),
double  angle = 0 
)

Counter-clockwise rotation around an axis. Angles are specified in degrees.


Member Function Documentation

void VRS::Rotation::setAxis ( const Vector  ) 

Vector VRS::Rotation::getAxis (  )  const [inline]

The rotation axis.

void VRS::Rotation::setCenter ( const Vector  ) 

Vector VRS::Rotation::getCenter (  )  const [inline]

The rotation center.

void VRS::Rotation::setAngle ( double   ) 

double VRS::Rotation::getAngle (  )  const [inline]

The rotation angle is defined in degrees [0..360].

virtual const Matrix& VRS::Rotation::matrix ( Engine engine = 0  )  const [virtual]

The matrix that represents the rotation.

Implements VRS::Transform.

VRS::Rotation::VRS_TYPEINFO ( Rotation  ,
Transform   
)

VRS::Rotation::VRS_SERIALIZABLE ( Rotation   ) 


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

Generated on Mon May 20 06:00:33 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact