Bot'n Roll ONE A+ - Raspberry Pi 5 library
 
Loading...
Searching...
No Matches
onepi.utils.maths_utils.MathsUtils Class Reference

Public Member Functions

 cap_to_limits (value, min_value, max_value)
 
 convert_range (x_value, x_min, x_max, y_min, y_max)
 

Member Function Documentation

◆ cap_to_limits()

onepi.utils.maths_utils.MathsUtils.cap_to_limits ( value,
min_value,
max_value )
cap value to given limits (min and max)

◆ convert_range()

onepi.utils.maths_utils.MathsUtils.convert_range ( x_value,
x_min,
x_max,
y_min,
y_max )
Converts a value x given in the range [x_min : x_max]
to a new value in the range [y_min : y_max]

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