This class describes a rotation about an arbitrary origin and an arbitrary axis. More...
#include "Rotation.hpp"
Public Member Functions | |
RotationT () | |
The default constructor. It creates a rotation that represents a "null" rotation. More... | |
RotationT (const Vector3T< T > &Origin, const Vector3T< T > &Axis, const T &Angle) | |
The constructor for creating a rotation. More... | |
const Vector3T< T > & | GetOrigin () const |
Gets the origin of this rotation. More... | |
const Vector3T< T > & | GetAxis () const |
Gets the rotation axis. More... | |
T | GetAngle () const |
Gets the rotation angle. More... | |
const Matrix3x3T< T > & | GetRotMat () const |
Gets the rotation matrix. More... | |
Vector3T< T > | GetRotated (const Vector3T< T > &A) const |
Rotates a vector with this rotation. More... | |
Vector3T< T > | operator* (const Vector3T< T > &A) const |
Same as GetRotated. More... | |
This class describes a rotation about an arbitrary origin and an arbitrary axis.
The mathematical background is simple, see for example the lecture notes of my computer graphics course in winter semester 2001/2002, D:\Uni\Computergrafik\Lecture02_AffineTransforms.pdf page 16.
|
inline |
The default constructor. It creates a rotation that represents a "null" rotation.
|
inline |
The constructor for creating a rotation.
Origin | The origin (center) of the rotation. |
Axis | The axis of the rotation. |
Angle | The Euler angle (in degrees) for the rotation. |
|
inline |
Gets the rotation angle.
|
inline |
Gets the rotation axis.
|
inline |
Gets the origin of this rotation.
|
inline |
Rotates a vector with this rotation.
const Matrix3x3T< T > & RotationT::GetRotMat | ( | ) | const |
Gets the rotation matrix.
|
inline |
Same as GetRotated.