shz_normalizef
SHZ_INLINE float shz_normalizef(float current, float from, float to) SHZ_NOEXCEPT;Maps a value within the given range from to to, to be within the range of 0.0f += 1.0f.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
current | float | |
from | float | |
to | float |
Returns
Section titled “Returns”float
Availability
Section titled “Availability”- C++ equivalent:
shz::normalizef - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_scalar.h:167 - Module: Scalar, section "Mapping"