|
Namespaces |
| namespace | dtUtil |
Defines |
| #define | RAND_MAX 0x7fff |
Functions |
| template<typename Real> |
| Real | dtUtil::Min (Real a, Real b) |
| template<typename Real> |
| Real | dtUtil::Max (Real a, Real b) |
| int | dtUtil::RandRange (int from, int to) |
| float | dtUtil::RandFloat (float min, float max) |
| float | dtUtil::RandPercent () |
| template<typename Real> |
| Real | dtUtil::Abs (Real x) |
| template<typename Real> |
| void | dtUtil::Clamp (Real &x, const Real low, const Real high) |
| template<typename Real> |
| void | dtUtil::ClampMax (Real &x, const Real high) |
| template<typename Real> |
| void | dtUtil::ClampMin (Real &x, const Real low) |
| template<typename Real> |
| Real | dtUtil::Lerp (Real x, Real y, Real t) |
| | Apply a linear interpolation between the two supplied numbers using a third percentage value.
|
| template<typename T> |
| bool | dtUtil::IsFinite (const T value) |
| template<typename T> |
| T | dtUtil::CalculateNormal (T sX, T sMin, T sMax) |
| | Normalizes a value within a specified space range.
|
| template<typename T> |
| T | dtUtil::MapRangeValue (T sX, T xMin, T xMax, T yMin, T yMax) |
| | Calculates the corresponding value for a mirrored space.
|
| bool | dtUtil::Equivalent (float float1, float float2) |
| | This does a relative comparison of floats.
|
| bool | dtUtil::Equivalent (double double1, double double2) |
| | This does a relative comparison of doubles.
|
| template<typename TVec, typename Real> |
| bool | dtUtil::Equivalent (const TVec &lhs, const TVec &rhs, size_t size, Real epsilon) |
| | Does an epsilon equals on an any osg::Vec# or array.
|
| template<typename TVec, typename Real> |
| bool | dtUtil::Equivalent (const TVec &lhs, const TVec &rhs, Real epsilon) |
| | Does an epsilon equals on an any osg::Vec#.
|
| template<typename TVec> |
| bool | dtUtil::Equivalent (const TVec &lhs, const TVec &rhs) |
| | Does an epsilon equals on an any osg::Vec#, but auto calculates the epsilon per comparison.
|
| template<typename Real> |
| bool | dtUtil::WithinRange (Real lhs, Real rhs, Real epsilon) |