Skip to content

shz_wrapf_fsrra

Markdown
SHZ_INLINE float shz_wrapf_fsrra(float value, float min, float max) SHZ_NOEXCEPT;

Wraps the given value back to be within the range of min to max more quickly, provided max - min is a positive difference.

NameTypeDescription
valuefloat
minfloat
maxfloat

float

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