Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void LimitRange(const double Low, double &X, const double High); | Limit the range X. |
| 2 | void LimitRange(const int Low, int &X, const int High); | Limit the range X. |
Overload 1: void LimitRange(const double Low, double &X, const double High);
Limit the range X.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Low | const double | Lower bound in [Low,High]. |
| 2 | X | double & | Modify x to lie within closed interval [Low,High]. |
| 3 | High | const double | Upper bound in [Low,High]. |
Remarks:
Change X to stay within [Low,High] closed interval.
Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler
Overload 2: void LimitRange(const int Low, int &X, const int High);
Limit the range X.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Low | const int | |
| 2 | X | int & | |
| 3 | High | const int |
Remarks:
Change X to stay within [Low,High] range. In this case the parameters are integers.
See Also: Math387::EnsureRange, Math387::CheckRange
Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler