![]() |
3Gear Systems SDK
v0.9.34
|
#include <VecMath.h>
Public Member Functions | |
Transform (const Quaternion< T > &rotation_in, const Vector3< T > &translation_in) | |
Constructs a transform from the given rotation and translation. | |
void | invert () |
Inverts this transform. | |
Transform< T > | inverse () const |
Returns the inverse of this transform. | |
Public Attributes | |
Quaternion< T > | rotation |
This is the rotation component of the transform. | |
Vector3< T > | translation |
This is the translation component of the transform. | |
Represents the transform
\[ \left[ \begin{array}{cc} \mathbf{R} & \mathbf{t} \\ \mathbf{0} & 1 \end{array} \right] \]
The final transformation is \( T(\mathbf{X}) = \mathbf{R}*\mathbf{x} + \mathbf{t} \), where \(\mathbf{R}\) is the rotational component and \( \mathbf{t} \) is the translational component.