Click or drag to resize

MathUtilsMinMax Method

Returns val unless it falls outside the min/max range in which case the appropriate bound is returned.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static int MinMax(
	int min,
	int max,
	int val
)

Parameters

min
Type: SystemInt32
The minimum value to return.
max
Type: SystemInt32
The maximum value to return.
val
Type: SystemInt32
The value to bounds check.

Return Value

Type: Int32
Returns val unless it falls outside the min/max range in which case the appropriate bound is returned.
See Also