Skip to content

shz_mag_sqr3f

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

NameTypeDescription
xfloat
yfloat
zfloat

float

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