Vector3Range.Includes

Method in Vector3Range

Declaration

public bool Includes(Vector3 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(Vector3 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.