Method InRange
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
InRange(float, float, float)
Tests whether the given value lies in the half-open interval specified by its endpoints, that is, whether the value
lies in the interval [closedLeft, openRight).
public static bool InRange(float value, float closedLeft, float openRight)
Parameters
valuefloatThe value to check.
closedLeftfloatThe left end of the interval.
openRightfloatThe right end of the interval.
Returns
- bool
trueif the given value is equal or greater thanclosedLeftand smaller thanopenRight,falseotherwise.