Skip to content

shz_quat_magnitude

Markdown
SHZ_INLINE float shz_quat_magnitude(shz_quat_t quat) SHZ_NOEXCEPT;

Returns the magnitude of the given quaternion.

NameTypeDescription
quatshz_quat_tThe quaternion whose magnitude is returned.

The magnitude of quat.

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

shz_quat_magnitude_fsrra, shz_quat_magnitude_sqr, shz_quat_magnitude_inv