matrix_rotation_quaternion()

Builds a rotation matrix from a quaternion.

Syntax

void matrix_rotation_quaternion(
        mat_type& m,
        const quat_type& q
);

Arguments

m
        reference to the matrix that is the target of the operation
q
        unit-length quaternion from which to build the rotation

Return value

None.

Comments

None.

Header

cml/mathlib/matrix_rotation.h