Designed to contain translation and rotation data of the positional tracking. More...
Functions | |
Transform () | |
Transform default constructor. More... | |
Transform (const Transform &motion) | |
Transform copy constructor (deep copy). More... | |
Transform (const Matrix4f &mat) | |
Transform copy constructor (deep copy). More... | |
Transform (const Rotation &rotation, const Translation &translation) | |
Transform constructor from a Rotation and a Translation. More... | |
Transform (const Orientation &orientation, const Translation &translation) | |
Transform constructor from an Orientation and a Translation. More... | |
void | setRotationMatrix (const Rotation &rotation) |
Sets the rotation of the current Transform from an Rotation. More... | |
Rotation | getRotationMatrix () const |
Returns the Rotation of the current Transform. More... | |
void | setTranslation (const Translation &translation) |
Sets the translation of the current Transform from an Translation. More... | |
Translation | getTranslation () const |
Returns the Translation of the current Transform. More... | |
void | setOrientation (const Orientation &orientation) |
Sets the orientation of the current Transform from an Orientation. More... | |
Orientation | getOrientation () const |
Returns the Orientation of the current Transform. More... | |
float3 | getRotationVector () |
Returns the 3x1 rotation vector obtained from 3x3 rotation matrix using Rodrigues formula. More... | |
void | setRotationVector (const float3 &vec_rot) |
Sets the Rotation 3x3 of the Transform with a 3x1 rotation vector (using Rodrigues' transformation). More... | |
float3 | getEulerAngles (bool radian=true) const |
Convert the Rotation of the Transform as Euler angles. More... | |
void | setEulerAngles (const float3 &euler_angles, bool radian=true) |
Sets the Rotation of the Transform from the Euler angles. More... | |
Matrix4f | operator* (const Matrix4f &mat) const |
Matrix4f | operator* (const Vector4< float > &vect) const |
Matrix4f | operator* (const float &scalar) const |
Matrix4f | operator+ (const Matrix4f &mat) const |
Matrix4f | operator+ (const float &scalar) const |
Matrix4f | operator- (const Matrix4f &mat) const |
Matrix4f | operator- (const float &scalar) const |
bool | operator== (const Matrix4f &mat) const |
bool | operator!= (const Matrix4f &mat) const |
float & | operator() (int u, int v) |
Gets access to a specific point in the Matrix4f (read / write). More... | |
ERROR_CODE | inverse () |
Sets the Matrix4f to its inverse. More... | |
void | transpose () |
Sets the Matrix4f to its transpose. More... | |
void | setIdentity () |
Sets the Matrix4f to identity. More... | |
void | setZeros () |
Sets the Matrix4f to zero. More... | |
ERROR_CODE | setSubMatrix3f (Matrix3f input, int row=0, int column=0) |
Sets a 3x3 Matrix inside the Matrix4f. More... | |
ERROR_CODE | setSubVector3f (Vector3< float > input, int column=3) |
Sets a 3x1 Vector inside the Matrix4f at the specified column index. More... | |
ERROR_CODE | setSubVector4f (Vector4< float > input, int column=3) |
Sets a 4x1 Vector inside the Matrix4f at the specified column index. More... | |
String | getInfos () |
Returns the components of the Matrix4f in a String. More... | |
Static Functions | |
static Matrix4f | inverse (const Matrix4f &mat) |
Creates the inverse of a Matrix4f. More... | |
static Matrix4f | transpose (const Matrix4f &mat) |
Creates the transpose of a Matrix4f. More... | |
static Matrix4f | identity () |
Creates an identity Matrix4f. More... | |
static Matrix4f | zeros () |
Creates a Matrix4f filled with zeros. More... | |
Attributes | |
String | matrix_name |
Name of the matrix (optional). More... | |
Designed to contain translation and rotation data of the positional tracking.
It contains the orientation as well. It can be used to create any type of Matrix4x4 or Matrix4f that must be specifically used for handling a rotation and position information (OpenGL, Tracking...) It inherits from the generic Matrix4f
Transform | ( | const Rotation & | rotation, |
const Translation & | translation | ||
) |
Transform constructor from a Rotation and a Translation.
rotation | : the Rotation to copy. |
translation | : the Translation to copy. |
Transform | ( | const Orientation & | orientation, |
const Translation & | translation | ||
) |
Transform constructor from an Orientation and a Translation.
orientation | : the Orientation to copy. |
translation | : the Translation to copy. |
void setRotationMatrix | ( | const Rotation & | rotation | ) |
Rotation getRotationMatrix | ( | ) | const |
void setTranslation | ( | const Translation & | translation | ) |
Sets the translation of the current Transform from an Translation.
translation | : the Translation to be used. |
Translation getTranslation | ( | ) | const |
Returns the Translation of the current Transform.
void setOrientation | ( | const Orientation & | orientation | ) |
Sets the orientation of the current Transform from an Orientation.
orientation | : the Orientation to be used. |
Orientation getOrientation | ( | ) | const |
Returns the Orientation of the current Transform.
float3 getRotationVector | ( | ) |
Returns the 3x1 rotation vector obtained from 3x3 rotation matrix using Rodrigues formula.
void setRotationVector | ( | const float3 & | vec_rot | ) |
float3 getEulerAngles | ( | bool | radian = true | ) | const |
void setEulerAngles | ( | const float3 & | euler_angles, |
bool | radian = true |
||
) |
brief Gives the result of the multiplication between two Matrix4f.
brief Gives the result of the multiplication between a Matrix4f and a float4.
|
inherited |
brief Gives the result of the multiplication between a Matrix4f and a scalar.
brief Gives the result of the addition between two Matrix4f.
|
inherited |
brief Gives the result of the addition between a Matrix4f and a scalar.
brief Gives the result of the subtraction between two Matrix4f.
|
inherited |
brief Gives the result of the subtraction between a Matrix4f and a scalar.
|
inherited |
Gets access to a specific point in the Matrix4f (read / write).
u | : specify the row. |
v | : specify the column. |
|
inherited |
Sets the Matrix4f to its inverse.
|
inherited |
Sets the Matrix4f to its transpose.
|
inherited |
Sets the Matrix4f to identity.
|
staticinherited |
|
inherited |
Sets the Matrix4f to zero.
|
staticinherited |
|
inherited |
Sets a 3x3 Matrix inside the Matrix4f.
input | : sub matrix to put inside the Matrix4f. |
row | : index of the row to start the 3x3 block. Must be 0 or 1. |
column | : index of the column to start the 3x3 block. Must be 0 or 1. |
|
inherited |
Sets a 3x1 Vector inside the Matrix4f at the specified column index.
input | : sub vector to put inside the Matrix4f. |
column | : index of the column to start the 3x3 block. By default, it is the last column (translation for a Pose). |
|
inherited |
Sets a 4x1 Vector inside the Matrix4f at the specified column index.
input | : sub vector to put inside the Matrix4f. |
column | : index of the column to start the 3x3 block. By default, it is the last column (translation for a Pose). |
|
inherited |
|
inherited |
Name of the matrix (optional).