Math387::EnsureRange Function

Overload List

#SignatureDescription
1double EnsureRange(const double Low, const double X, const double High);Limits the value.
2int EnsureRange(const int Low, const int X, const int High);Limits the value.
3long long EnsureRange(const long long Low, const long long X, const long long High);

Overload 1: double EnsureRange(const double Low, const double X, const double High);

Limits the value.

#NameTypeDescription
1Lowconst double
2Xconst double
3Highconst double

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

Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler

Overload 2: int EnsureRange(const int Low, const int X, const int High);

Limits the value.

#NameTypeDescription
1Lowconst int
2Xconst int
3Highconst int
Remarks:

Parameters can be integers.

Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler

Overload 3: long long EnsureRange(const long long Low, const long long X, const long long High);

#NameTypeDescription
1Lowconst long long
2Xconst long long
3Highconst long long
Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler