Click or drag to resize

GLMathfInRange Method

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).

Namespace:  Gamelogic.Extensions
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static bool InRange(
	float value,
	float closedLeft,
	float openRight
)

Parameters

value
Type: SystemSingle
The value to check.
closedLeft
Type: SystemSingle
The left end of the interval.
openRight
Type: SystemSingle
The right end of the interval.

Return Value

Type: Boolean
true if the given value is equal or greater than closedLeft and smaller than openRight, false otherwise.
See Also