NAME
DtMatrixGetTransforms - Given a 4x4 matrix this routine will
return the translation, scale, quaternion and Euler angles
of the matrix.
SYNOPSIS
#include <Dt.h>
int DtMatrixGetTransforms( float *matrix, float *translate, float *scale, float *quaternion, float *rotation )
DESCRIPTION
DtMatrixGetTransforms() decomposes matrix into its
translation, scale, quaternion and rotation components. The
rotation is given in the xyz order. The pointers translate,
scale, quaternion, rotation, refer to buffers that are
allocated by the caller. All buffers are for three floats,
except quaternions, which consist of four floats.
Therefore, the buffers are defined ad: float translate[3],
float scale[3], float quaternion[4], and float rotation[3].
DIAGNOSTICS
DtMatrixGetTransforms() returns one on success and zero on
failure.
FILES
Link with -lDtOMio