shz_quat_magnitude_inv
SHZ_INLINE float shz_quat_magnitude_inv(shz_quat_t quat) SHZ_NOEXCEPT;Returns the inverse magnitude of the given quaternion.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
quat | shz_quat_t | The quaternion whose inverse magnitude is returned. |
Returns
Section titled “Returns”1.0f divided by 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_inv - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_quat.h:284 - Module: Quaternion, section "Properties"