Skip to content

shz_wrapf

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

Wraps the given value back to be within the range of min to max.

NameTypeDescription
valuefloat
minfloat
maxfloat

float

  • C++ equivalent: shz::wrapf
  • Type-generic form: none
  • Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
  • Defined in: sh4zam/shz_scalar.h:179
  • Module: Scalar, section "Mapping"