/Users/carl/Desktop/Rim Physics/Source/Physics/Framework/Utilities/Math/rimPhysicsMathConfig.h File Reference

#include <rimPhysicsConfig.h>
#include <math.h>
#include <limits>

Namespaces

namespace  Math

Functions

template<typename T>
Math::nan ()
 Return the Not-A-Number representation for the template parameter type.
template<typename T>
Math::infinity ()
 Return the Infinity representation for the template parameter type.
template<typename T>
Math::negativeInfinity ()
 Return the Negative Infinity representation for the template parameter type.
template<typename T>
Math::max ()
 Return the maximum allowable finite value for the template parameter type.
template<typename T>
Math::min ()
 Return the minimum allowable finite value for the template parameter type.
template<typename T>
bool Math::isInfinity (T number)
 Get whether a number is equal to the representation of Infinity for its type.
template<typename T>
bool Math::isNegativeInfinity (T number)
 Get whether a number is equal to the representation of Negative Infinity for its type.
template<>
bool Math::isNegativeInfinity (unsigned char number)
template<>
bool Math::isNegativeInfinity (unsigned short number)
template<>
bool Math::isNegativeInfinity (unsigned int number)
template<>
bool Math::isNegativeInfinity (unsigned long number)
template<>
bool Math::isNegativeInfinity (unsigned long long number)
template<typename T>
bool Math::isInfinite (T number)
 Get whether a number is equal to Negative or Positive Infinity for its type.
template<typename T>
Math::isNAN (T number)
 Get whether or not the specified number is Not-A-Number.
template<typename T>
Math::abs (T number)
 Return the absolute value of the specified number, such that the result is positive.
template<>
unsigned char Math::abs (unsigned char value)
template<>
unsigned short Math::abs (unsigned short value)
template<>
unsigned int Math::abs (unsigned int value)
template<>
unsigned long Math::abs (unsigned long value)
template<>
unsigned long long Math::abs (unsigned long long value)
template<typename T>
int Math::sign (T number)
 Return -1 if the number is less than zero, 0 if it is zero, and 1 otherwise.
template<>
int Math::sign (unsigned char value)
template<>
int Math::sign (unsigned short value)
template<>
int Math::sign (unsigned int value)
template<>
int Math::sign (unsigned long value)
template<>
int Math::sign (unsigned long long value)
template<typename T>
static bool Math::equals (T value1, T value2)
template<typename T>
static bool Math::fuzzyEquals (T value1, T value2, T epsilon)
template<>
bool Math::equals (float value1, float value2)
template<>
bool Math::equals (double value1, double value2)
template<typename T>
Math::max (T number1, T number2)
 Return the larger of the two parameter numbers.
template<typename T>
Math::min (T value1, T value2)
 Return the smaller of the two parameter numbers.
template<typename T>
Math::clamp (T number, T minimum, T maximum)
 Return the result when the a number is constrainted to the interval [minimum, maximum].
template<typename T>
static T Math::floor (T number)
 Return the largest whole number smaller than the number parameter, as the same type.
template<typename T>
int Math::intFloor (T number)
 Return the largest whole number smaller than the number parameter, as an integer type.
template<typename T>
static T Math::ceiling (T number)
 Return the smallest whole number larger than the number parameter, as the same type.
template<typename T>
int Math::intCeiling (T number)
 Return the smallest whole number larger than the number parameter, as an integer type.
template<typename T>
Math::sqrt (T value)
template<typename T>
Math::cos (T value)
template<typename T>
Math::sin (T value)
template<typename T>
Math::nextPowerOfTwo (T number)
 Get the first power of two larger than the specified number.
template<typename T>
Math::pow (T base, T power)
template<typename T>
Math::intPow (T base, int power)
template<typename T>
Math::ln (T value)
template<typename T>
int Math::intLn (T value)
template<typename T>
Math::log10 (T value)
template<typename T>
int Math::intLog10 (T value)
template<typename T>
Math::radiansToDegrees (T number)
template<typename T>
Math::degreesToRadians (T number)
void Math::setRandomSeed (unsigned long seed)
float Math::random ()
float Math::randomFloat ()
template<typename T>
Math::randomRange (T min, T max)
template<>
float Math::randomRange (float min, float max)
template<>
double Math::randomRange (double min, double max)

Variables

const double Math::PI = 3.14159265358979323846
const double Math::E = 2.71828182845904523536
static const float Math::FLOAT_EPSILON = 0.00001f
static const double Math::DOUBLE_EPSILON = 0.00000000001
static const double Math::DEGREES_TO_RADIANS = Math::PI / 180.0
static const double Math::RADIANS_TO_DEGREES = 180.0 / Math::PI
static unsigned long Math::randomSeed = 1

Generated on Tue Aug 26 00:03:17 2008 for Rim Physics by  doxygen 1.5.4