shz_quat_magnitude
SHZ_INLINE float shz_quat_magnitude(shz_quat_t quat) SHZ_NOEXCEPT;Returns the magnitude of the given quaternion.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
quat | shz_quat_t | The quaternion whose magnitude is returned. |
Returns
Section titled “Returns”The magnitude of quat.
Details
Section titled “Details”Safely returns 0.0f when quat has a magnitude of 0.0f.
Availability
Section titled “Availability”- C++ equivalent:
shz::quat::magnitude - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_quat.h:259 - Module: Quaternion, section "Properties"
See also
Section titled “See also”shz_quat_magnitude_fsrra, shz_quat_magnitude_sqr, shz_quat_magnitude_inv