SDK DOCUMENTATION
Varjo_math.h File Reference

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...
 

Function Documentation

◆ varjo_GetEulerAngles()

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.

Parameters
matrixMatrix to extract the angles from.
orderEuler axis order.
directionRotation direction.
handednessRotation Handedness.

◆ varjo_GetPosition()

struct varjo_Vector3D varjo_GetPosition ( struct varjo_Matrix matrix)

Gets the translation part from a transformation matrix.

Parameters
matrixMatrix to extract the translation from.