Skip to content

shz_vec2_sqrtf_fsrra

Markdown
SHZ_INLINE shz_vec2_t shz_vec2_sqrtf_fsrra(shz_vec2_t vec) SHZ_NOEXCEPT;

Returns a 2D vector whose components are the fast approximate square root of the given vector's components.

NameTypeDescription
vecshz_vec2_t

shz_vec2_t

  • The Y component must not be 0.0f.
  • _fsrra: Uses FSRRA (fast approximate 1/sqrt(x)). The argument or denominator must be positive. Faster, less precise. (Naming and Suffixes)