Module

GLMatrix.Quat.Mix

#js_rotationTo

#rotationTo

rotationTo :: Vec3 -> Vec3 -> Quat

Sets a quaternion to represent the shortest rotation from one vector to another. Both vectors are assumed to be unit length.

#setAxes

setAxes :: Vec3 -> Vec3 -> Vec3 -> Quat

Sets the specified quaternion with values corresponding to the given axes. Each axis is a vec3 and is expected to be unit length and perpendicular to all other specified axes.

#js_fromMat3

#fromMat3

fromMat3 :: Mat3 -> Quat

Sets the specified quaternion with values corresponding to the given axes. Each axis is a vec3 and is expected to be unit length and perpendicular to all other specified axes.

#js_getAxisAngle

#getAxisAngle

getAxisAngle :: Vec3 -> Quat -> Number

Sets the specified quaternion with values corresponding to the given axes. Each axis is a vec3 and is expected to be unit length and perpendicular to all other specified axes.

#js_setAxisAngle

#setAxisAngle

setAxisAngle :: Vec3 -> Number -> Quat

Sets a quat from the given angle and rotation axis, then returns it.

Modules