Enumerations | |
enum | AXIS { X = 0, Y, Z, W, TRANS = W } |
Numerical values for the different axis of the standard axis system. More... | |
Functions | |
double | RadToDeg (double val) |
Convert radians to degrees. | |
float | RadToDeg (float val) |
Convert radians to degrees. | |
double | DegToRad (double val) |
Convert degrees to radians. | |
float | DegToRad (float val) |
Convert degrees to radians. | |
int | IsNotANumber (float f) |
Determines if given float is encoding for not a number (NAN). | |
template<class T> | |
T | Sign (const T &val) |
Retrieves the sign of a number. | |
template<class T, class T2, class T3> | |
T | Clamp (T val, T2 mn, T3 mx) |
Clamps the specified object within a range specified by two other objects of the same class. | |
template<class T, class T2, class T3> | |
T | Wrap (T val, T2 mn, T3 mx) |
Wraps the specified object within a range specified by two other objects of the same class. | |
template<> | |
float | Wrap (float val, float mn, float mx) |
Template specializations of the Wrap method. | |
template<> | |
double | Wrap (double val, double mn, double mx) |
See above. | |
template<> | |
int | Wrap (int val, int mn, int mx) |
See above. | |
template<> | |
uint32 | Wrap (uint32 val, uint32 mn, uint32 mx) |
See above. | |
Variables | |
const double | Pi = 3.14159265358979323846264338327950288419716939937510 |
Mathematical value of pi to 50 decimals. | |
const float | Pif = 3.14159265358979323846264338327950288419716939937510f |
See above. |
|
Numerical values for the different axis of the standard axis system. You can use these enumerated types with the FMatrix44::GetAxis function. |
|
Clamps the specified object within a range specified by two other objects of the same class. Clamping refers to setting a value within a given range. If the value is lower than the minimum of the range, it is set to the minimum; same for the maximum.
|
|
Convert degrees to radians.
|
|
Convert degrees to radians.
|
|
Determines if given float is encoding for not a number (NAN).
|
|
Convert radians to degrees.
|
|
Convert radians to degrees.
|
|
Retrieves the sign of a number.
|
|
Template specializations of the Wrap method. Optimizing for known primitives. Feel free to add more supported primitives when needed. |
|
Wraps the specified object within a range specified by two other objects of the same class. Wrapping refers to looping around maximum and minimum values until we're within that range. e.g. Provided that mn = 0.0f, mx = 1.0f and val = 1.01f, then the Wrap result will be 0.01f.
|