matrix.to.axis.angle

Syntax

v := matrix.to.axis.angle(m)

Convert a rotation matrix to axis angle. The rotation matrix is a 3 × 3 matrix. The magnitude of the returned axis-angle representation is the angle of rotation in radians, following the right-hand rule, about the axis pointing in the direction of the unit vector.

Returns:

v - axis-angle representation

Arguments:

m - matrix pointer to a 3 × 3 matrix