Static Public Member Functions |
| static uint32 | getUpperPowerOfTwo (uint32 val) |
| static uint32 | getLowerPowerOfTwo (uint32 val) |
| template<class T > |
| static DtVector3< T > | toCartesian (T thetaDegrees, T phiDegrees, bool flipYZ) |
| template<class T > |
| static bool | isFinite (T n) |
| template<class T > |
| static T | positiveInfinity (void) |
| template<class T > |
| static T | negativeInfinity (void) |
|
| template<class T > |
| static T | Sqrt (T val) |
| | Standard math routines.
|
| template<class T > |
| static T | Abs (T val) |
| static int | Abs (int val) |
| template<class T > |
| static T | Sin (T val) |
| template<class T > |
| static T | Cos (T val) |
| template<class T > |
| static T | Tan (T val) |
| static float | Sin (const DtDegrees &val) |
| static float | Cos (const DtDegrees &val) |
| static float | Tan (const DtDegrees &val) |
| template<class T > |
| static T | Squared (T val) |
| template<class T > |
| static int | NumDigits (T val) |
| template<class T > |
| static double | GetNormalizedValueRespectingLength (T val) |
| static bool | isEqual (int32 lhs, int32 rhs, int32 tolerance=std::numeric_limits< int32 >::epsilon()) |
| | Test equality with tolerance.
|
| static bool | isEqual (uint32 lhs, uint32 rhs, uint32 tolerance=std::numeric_limits< uint32 >::epsilon()) |
| static bool | isEqual (float32 lhs, float32 rhs, float32 tolerance=std::numeric_limits< float32 >::epsilon()) |
| static bool | isEqual (float64 lhs, float64 rhs, float64 tolerance=std::numeric_limits< float64 >::epsilon()) |
|
| static float32 | unitRandom32 (void) |
| | Random number generation routines.
|
| static float64 | unitRandom64 (void) |
| static int | rangeRandom (int iLow, int iHigh) |
| static float32 | rangeRandom (float32 fLow, float32 fHigh) |
| static float64 | rangeRandom (float64 fLow, float64 fHigh) |
| static bool | randomBool (void) |
|
| template<class T > |
| static T | clamp (T val, T minval, T maxval) |
| | Clamping routines.
|
| template<class T > |
| static DtVector2< T > | clamp (const DtVector2< T > &val, const DtVector2< T > &minval, const DtVector2< T > &maxval) |
| template<class T > |
| static DtVector3< T > | clamp (const DtVector3< T > &val, const DtVector3< T > &minval, const DtVector3< T > &maxval) |
| template<class T > |
| static DtVector4< T > | clamp (const DtVector4< T > &val, const DtVector4< T > &minval, const DtVector4< T > &maxval) |