euclidean.math.quaternion documentation

axes

(axes q)
Return the three axes of the quaternion.

from-angle-axis

(from-angle-axis angle axis)
Create a quaternion from an angle in radians and an arbitrary axis vector.

from-angle-normal-axis

(from-angle-normal-axis angle axis)
Create a quaternion from an angle in radians and a normalized axis vector.

from-axes

(from-axes x-axis y-axis z-axis)
Create a quaternion from three axis vectors.

get-w

(get-w q)
Get the w component of a quaternion.

get-x

(get-x q)
Get the x component of a quaternion.

get-y

(get-y q)
Get the y component of a quaternion.

get-z

(get-z q)
Get the z component of a quaternion.

identity

The identity quaternion.

into-quaternion

(into-quaternion coll)
Turn a collection of 4 numbers into a quaternion.

look-at

(look-at direction up)
Create a quaternion that is directed at a point specified by a vector.

mult

(mult q)(mult q1 q2)(mult q1 q2 & more)
Multiply two quaternions together.

norm

(norm q)
Compute the norm of the quaternion.

pitch

(pitch angle)
Create a quaternion representing a pitch rotation by an angle in radians.

quaternion

(quaternion x y z w)
Create a new quaternion.

roll

(roll angle)
Create a quaternion representing a roll rotation by an angle in radians.

rotate

(rotate q v)
Rotate a vector with a quaternion.

yaw

(yaw angle)
Create a quaternion representing a yaw rotation by an angle in radians.