No matching definitions.

math/quat

src/math/quat.tur
defn

quat

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

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

defn

q-from-axis-angle

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

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

Since: P1

defn

q-mul

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

multiply two quaternions. Since: P1

defn

q-normalize

(q-normalize [q :int] :int)

return a unit quaternion. Since: P1

defn

q-slerp

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

spherical linear interpolation between two quaternions. Since: P1

defn

q-to-mat4

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

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