Skip to content

cf_quat_inverse

Category: math
GitHub: cute_math3d.h


Returns the inverse rotation.

CF_Quat cf_quat_inverse(CF_Quat q)

Remarks

Works for non-unit quaternions by dividing the conjugate by the squared length. A unit quaternion's inverse IS its conjugate -- prefer cf_quat_conjugate when you know the quaternion is normalized.

CF_Quat
cf_quat_conjugate
cf_quat_norm