Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void LimitRange(Double Low, ref Double X, Double High) | Limit the range X. |
| 2 | void LimitRange(Int32 Low, ref Int32 X, Int32 High) | Limit the range X. |
| 3 | void LimitRangef(Single Low, ref Single X, Single High) |
Overload 1: void LimitRange(Double Low, ref Double X, Double High)
Limit the range X.
| # | Name | Description |
|---|---|---|
| 1 | Low | Lower bound in [Low,High]. |
| 2 | High | Upper bound in [Low,High]. |
| 3 | X | Modify x to lie within closed interval [Low,High]. |
Result: stored in self (calling object)
Remarks:
Change X to stay within [Low,High] closed interval.
Overload 2: void LimitRange(Int32 Low, ref Int32 X, Int32 High)
Limit the range X.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Low | Int32 | |
| 2 | X | Int32 (ref) | output |
| 3 | High | Int32 |
Result: stored in self (calling object)
Remarks:
Change X to stay within [Low,High] range. In this case the parameters are integers.
See Also: Math387.EnsureRange, Math387.CheckRange
Overload 3: void LimitRangef(Single Low, ref Single X, Single High)
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Low | Single | scalar |
| 2 | X | Single (ref) | |
| 3 | High | Single | scalar |
Result: stored in self (calling object)