shz_remapf
SHZ_INLINE float shz_remapf(float value, float inputStart, float inputEnd, float outputStart, float outputEnd) SHZ_NOEXCEPT;Maps a value within the given range inputStart to inputEnd, to be within the range of outputStart to outputEnd.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
value | float | |
inputStart | float | |
inputEnd | float | |
outputStart | float | |
outputEnd | float |
Returns
Section titled “Returns”float
Availability
Section titled “Availability”- C++ equivalent:
shz::remapf - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_scalar.h:173 - Module: Scalar, section "Mapping"