quatToMatrix

quatToMatrix
(
E
)
()

Examples

auto q = rquat.fromAngle( PI_2, vec3(0,0,1) );

auto m = quatToMatrix(q);
auto r = mat3(0,-1, 0, 1, 0, 0, 0, 0, 1);
assert( eq_approx( m, r, 1e-7 ) );

Meta