shz_mag_sqr3f
SHZ_INLINE float shz_mag_sqr3f(float x, float y, float z) SHZ_NOEXCEPT;Takes a 3D vector as 3 floats and calculates its squared magnitude using a fast approximation.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
x | float | |
y | float | |
z | float |
Returns
Section titled “Returns”float
Availability
Section titled “Availability”- C++ equivalent:
shz::mag_sqr3f - Type-generic form: none
- Back-ends: SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_scalar.h:317 - Module: Scalar, section "FIPR"