Table of Contents

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 float

The value to check.

closedLeft float

The left end of the interval.

openRight float

The right end of the interval.

Returns

bool

true if the given value is equal or greater than closedLeft and smaller than openRight, false otherwise.