![]() |
SDK DOCUMENTATION
|
Go to the source code of this file.
Functions | |
struct varjo_Vector3D | varjo_GetEulerAngles (struct varjo_Matrix *matrix, varjo_EulerOrder order, varjo_RotationDirection direction, varjo_Handedness handedness) |
Extracts the euler angles in radians from the given matrix. More... | |
struct varjo_Vector3D | varjo_GetPosition (struct varjo_Matrix *matrix) |
Gets the translation part from a transformation matrix. More... | |
struct varjo_Vector3D varjo_GetEulerAngles | ( | struct varjo_Matrix * | matrix, |
varjo_EulerOrder | order, | ||
varjo_RotationDirection | direction, | ||
varjo_Handedness | handedness | ||
) |
Extracts the euler angles in radians from the given matrix.
Default convention is right handed counter clockwise rotation, where X-axis is negative and Y and Z axes are positive.
Rotations are global, to get local rotations flip the axes. Eg: Global rotation XYZ -> local rotation ZYX.
matrix | Matrix to extract the angles from. |
order | Euler axis order. |
direction | Rotation direction. |
handedness | Rotation Handedness. |
struct varjo_Vector3D varjo_GetPosition | ( | struct varjo_Matrix * | matrix | ) |
Gets the translation part from a transformation matrix.
matrix | Matrix to extract the translation from. |