Math387.EnsureRange / EnsureRangef Method

Overload List

#SignatureDescription
1Double EnsureRange(Double Low, Double X, Double High)Limits the value.
2Int32 EnsureRange(Int32 Low, Int32 X, Int32 High)Limits the value.
3Int64 EnsureRange(Int64 Low, Int64 X, Int64 High)
4Single EnsureRangef(Single Low, Single X, Single High)

Overload 1: Double EnsureRange(Double Low, Double X, Double High)

Limits the value.

#NameTypeDescription
1LowDoublescalar
2XDoublescalar
3HighDoublescalar

Returns: Double - Low if X is smaller then Low and High if X is bigger then High.

Overload 2: Int32 EnsureRange(Int32 Low, Int32 X, Int32 High)

Limits the value.

#NameTypeDescription
1LowInt32
2XInt32
3HighInt32

Returns: Int32

Remarks:

Parameters can be integers.

Overload 3: Int64 EnsureRange(Int64 Low, Int64 X, Int64 High)

#NameTypeDescription
1LowInt64
2XInt64
3HighInt64

Returns: Int64

Overload 4: Single EnsureRangef(Single Low, Single X, Single High)

#NameTypeDescription
1LowSinglescalar
2XSinglescalar
3HighSinglescalar

Returns: Single