MechaLib
The robust, all-in-one software library for MechaLeague Robots
Loading...
Searching...
No Matches
MathUtil Class Reference

#include <MathUtil.h>

Static Public Member Functions

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.

Member Function Documentation

◆ 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
xThe float to map.
in_minThe minimum of the input range.
in_maxThe maximum of the input range.
out_minThe minimum of the output range.
out_maxThe maximum of the output range.
Returns
The mapped float.

The documentation for this class was generated from the following file: