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