Skip to content

shz_quat_magnitude_inv

Markdown
SHZ_INLINE float shz_quat_magnitude_inv(shz_quat_t quat) SHZ_NOEXCEPT;

Returns the inverse magnitude of the given quaternion.

NameTypeDescription
quatshz_quat_tThe quaternion whose inverse magnitude is returned.

1.0f divided by the magnitude of quat.

Safely returns 0.0f when quat has a magnitude of 0.0f.

shz_quat_magnitude_inv_fsrra, shz_quat_magnitude