No matching definitions.

math/quat

src/math/quat.tur
defn

quat

(quat [x : float y : float z : float w : float] :)

construct a quaternion (x y z w). Since: P1

defn

q-from-axis-angle

(q-from-axis-angle [axis : int angle : float] :)

quaternion from axis (Vec3 handle) and angle in radians.

Since: P1

defn

q-mul

(q-mul [a : int b : int] :)

multiply two quaternions. Since: P1

defn

q-normalize

(q-normalize [q : int] :)

return a unit quaternion. Since: P1

defn

q-slerp

(q-slerp [a : int b : int t : float] :)

spherical linear interpolation between two quaternions. Since: P1

defn

q-to-mat4

(q-to-mat4 [q : int] :)

convert a quaternion to a 4x4 rotation matrix. Since: P1