Skip to content

shz_mag_sqr4f

Markdown
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.

NameTypeDescription
xfloat
yfloat
zfloat
wfloat

float

  • 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"