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
value
floatThe value to check.
closedLeft
floatThe left end of the interval.
openRight
floatThe right end of the interval.
Returns
- bool
true
if the given value is equal or greater thanclosedLeft
and smaller thanopenRight
,false
otherwise.