clampMax method
T
clampMax(
- T maxValue
Returns the smaller value between this value and maxValue.
If this value is smaller than maxValue, it is returned.
Otherwise, maxValue is returned.
Implementation
T clampMax(T maxValue) => ([this, maxValue]).min();