Quaternion operations
Functions
-
Float4 mul(const Float4 &q1, const Float4 &q2)
Concatenates two quaternions.
-
Float4 from_axis_angle(const Float3 &axis, f32 angle)
Creates one quaternion from rotation axis and rotation angle.
-
Float4 from_euler_angles(const Float3 &euler_angles)
Creates one quaternion from euler angles.
-
Float4 from_euler_angles(f32 pitch, f32 yaw, f32 roll)
Creates one quaternion from euler angles.
-
Creates one identity quaternion.
-
Float4 conjugate(const Float4 &q)
Computes the conjugation quaternion the specified quaternion.
-
Float4 inverse(const Float4 &q)
Computes the inversed quaternion the specified quaternion.
-
Float4 lerp(const Float4 &q1, const Float4 &q2, f32 t)
Performs linear interpolation between two quaternions.
-
Float4 slerp(const Float4 &q1, const Float4 &q2, f32 t)
Performs spherical interpolation between two quaternions.