Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

MathTools Class Reference

#include <MathTools.h>

List of all members.

Public Member Functions

Static Public Member Functions

Static Public Attributes


Constructor & Destructor Documentation

MathTools::MathTools  )  [inline]
 

Definition at line 12 of file MathTools.h.

virtual MathTools::~MathTools  )  [inline, virtual]
 

Definition at line 13 of file MathTools.h.


Member Function Documentation

template<class Number>
double MathTools::max Number  a,
Number  b
[inline, static]
 

Definition at line 34 of file MathTools.h.

Referenced by SystemSolver::svDecompose().

double MathTools::modulus double  x,
double  y
[inline, static]
 

Returns sqrt(x^2+y^2) without destructive underflow or overflow. After Numerical Recipes, p. 70 (Press et al.)

Definition at line 40 of file MathTools.h.

References sqr().

Referenced by VisualSensor::detectContacts(), and SystemSolver::svDecompose().

template<class Number>
double MathTools::setSign double  x,
Number  sign
[inline, static]
 

Returns a number having the absolute value of x and the sign sign.

Definition at line 30 of file MathTools.h.

Referenced by SystemSolver::svDecompose().

template<class Number>
int MathTools::sign Number  x  )  [inline, static]
 

Definition at line 25 of file MathTools.h.

template<class Number>
Number MathTools::sqr Number  x  )  [inline, static]
 

Definition at line 21 of file MathTools.h.


Member Data Documentation

const double MathTools::degrees = MathTools::pi/180.0 [static]
 

Defines the size of a degree in radians.

Definition at line 6 of file MathTools.cpp.

const double MathTools::pi = 3.1415926535897932384626433832795028841971693993751058209749445923078164062862 [static]
 

Defines pi (3.14...) in case that it is not defined by the C library used.

Definition at line 4 of file MathTools.cpp.


The documentation for this class was generated from the following files:

Thyrix homepageUsers' guide

(C) Arxia 2004-2005