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