FloatRange.Includes

Method in FloatRange

Declaration

public bool Includes(float value)

Description

Checks if a value is in the range.

Parameters

valueThe value to check.

Returns

boolTrue if the value is in the range, false otherwise.

Overload

Declaration

public bool Includes(float value, bool includeMin, bool includeMax)

Description

Checks if a value is in the range.

Parameters

valueThe value to check.
includeMinThe minimum value is inclusive if true, exclusive if false.
includeMaxThe maximum value is inclusive if true, exclusive if false.

Returns

boolTrue if the value is in the range, false otherwise.