7 #ifndef CAFU_MATH_ROTATION_HPP_INCLUDED
8 #define CAFU_MATH_ROTATION_HPP_INCLUDED
10 #include "Matrix3x3.hpp"
11 #include "Vector3.hpp"
30 m_IsRotMatValid(true),
43 m_IsRotMatValid(false),
73 mutable bool m_IsRotMatValid;
79 typedef RotationT<float> RotationfT;
82 typedef RotationT<double> RotationdT;
Vector3T< T > GetRotated(const Vector3T< T > &A) const
Rotates a vector with this rotation.
Definition: Rotation.hpp:61
const Vector3T< T > & GetAxis() const
Gets the rotation axis.
Definition: Rotation.hpp:52
Vector3T< T > operator*(const Vector3T< T > &A) const
Same as GetRotated.
Definition: Rotation.hpp:64
const Vector3T< T > & GetOrigin() const
Gets the origin of this rotation.
Definition: Rotation.hpp:49
This class represents a polymorphic 3-dimensional vector.
Definition: Misc.hpp:11
RotationT()
The default constructor. It creates a rotation that represents a "null" rotation. ...
Definition: Rotation.hpp:26
RotationT(const Vector3T< T > &Origin, const Vector3T< T > &Axis, const T &Angle)
The constructor for creating a rotation.
Definition: Rotation.hpp:39
const Matrix3x3T< T > & GetRotMat() const
Gets the rotation matrix.
Definition: Rotation.cpp:14
This class describes a rotation about an arbitrary origin and an arbitrary axis.
Definition: Rotation.hpp:21
T GetAngle() const
Gets the rotation angle.
Definition: Rotation.hpp:55
This class represents a generic 3x3 matrix.
Definition: Angles.hpp:17