#include <MathUtil.h>
|
static float | mapFloat (float x, float in_min, float in_max, float out_min, float out_max) |
| Maps a float from one range to another.
|
◆ mapFloat()
float MathUtil::mapFloat |
( |
float | x, |
|
|
float | in_min, |
|
|
float | in_max, |
|
|
float | out_min, |
|
|
float | out_max ) |
|
inlinestatic |
Maps a float from one range to another.
- Parameters
-
x | The float to map. |
in_min | The minimum of the input range. |
in_max | The maximum of the input range. |
out_min | The minimum of the output range. |
out_max | The maximum of the output range. |
- Returns
- The mapped float.
The documentation for this class was generated from the following file: