| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/rotation.h>

Public Member Functions | |
| Rotation (const Vector &axis=Vector(1, 0, 0), const Vector ¢er=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 Matrix & | matrix (Engine *engine=0) const |
| The matrix that represents the rotation. | |
| VRS_TYPEINFO (Rotation, Transform) | |
| VRS_SERIALIZABLE (Rotation) | |
| 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.
| 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].
| VRS::Rotation::VRS_SERIALIZABLE | ( | Rotation | ) |