Skip to content

shz_normalizef

Markdown
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 to 1.0f. Returns 1.0f when from == to.

NameTypeDescription
currentfloat
fromfloat
tofloat

float