inBounds<T extends num> static method

bool inBounds<T extends num>(
  1. T value,
  2. T minimumValue,
  3. T maximumValue
)

Number is contained by min/max, or equal to.

Implementation

static bool inBounds<T extends num>(T value, T minimumValue, T maximumValue)
{
  return value == clamp(value, minimumValue, maximumValue);
}