Module tmx_utils::math_utils
source · Expand description
Math Utilities
Functions
- Clamps
valbetweenmin_valandmax_val. - Clamps
valbetween 0 and 1. Had intended to useclamp(val, 0, 1), but float doesn’t implement the Ord trait. - Linearly interpolates between
aandbbyt. Does NOT clamp ‘t’ between 0 and 1, allowing for extrapolation. - Linearly interpolates between
aandbbyt. Clamps ‘t’ between 0 and 1.