shz_clampf
SHZ_INLINE float shz_clampf(float value, float min, float max) SHZ_NOEXCEPT;Clamps a floating-point value by the given min and max values.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
value | float | |
min | float | |
max | float |
Returns
Section titled “Returns”float
Availability
Section titled “Availability”- C++ equivalent:
shz::clampf - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_scalar.h:164 - Module: Scalar, section "Mapping"