Overload List
| # | Signature | Description |
|---|---|---|
| 1 | procedure LimitRange(const Low: Double; var X: Double; const High: Double); | Limit the range X. |
| 2 | procedure LimitRange(const Low: Integer; var X: Integer; const High: Integer); | Limit the range X. |
| 3 | procedure LimitRangef(const Low: Single; var X: Single; const High: Single); |
Overload 1: procedure LimitRange(const Low: Double; var X: Double; const High: Double);
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: procedure LimitRange(const Low: Integer; var X: Integer; const High: Integer);
Limit the range X.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Low | Integer | |
| 2 | X | Integer | |
| 3 | High | Integer |
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: procedure LimitRangef(const Low: Single; var X: Single; const High: Single);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Low | Single | |
| 2 | X | Single | |
| 3 | High | Single |
Result: stored in self (calling object)