Converts a quaternion to an axis-angle rotation.
// Returns the vector (1, 1, 1)const rotated = Chalkboard.quat.toRotation( Chalkboard.quat.fromAxis(Chalkboard.vect.init(0, 0, 1), Chalkboard.PI(0.5)), Chalkboard.vect.init(1, 0, 1)); Copy
// Returns the vector (1, 1, 1)const rotated = Chalkboard.quat.toRotation( Chalkboard.quat.fromAxis(Chalkboard.vect.init(0, 0, 1), Chalkboard.PI(0.5)), Chalkboard.vect.init(1, 0, 1));
The quaternion
The vector to rotate around
Converts a quaternion to an axis-angle rotation.
Example