Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
JMathToolkit.hh File Reference

Auxiliary methods for geometrical methods. More...

#include <cmath>
#include "JLang/JException.hh"

Go to the source code of this file.

Namespaces

 JMATH
 Auxiliary classes and methods for mathematical operations.
 
 JPP
 

Functions

long long int JMATH::factorial (const long long int n)
 Determine factorial. More...
 
long long int JMATH::factorial (const long long int n, const long long int m)
 Determine combinatorics. More...
 
template<class JFirst_t , class JSecond_t >
double JMATH::getDistanceSquared (const JFirst_t &first, const JSecond_t &second)
 Get square of distance between objects. More...
 
template<class JFirst_t , class JSecond_t >
double JMATH::getDistance (const JFirst_t &first, const JSecond_t &second)
 Get distance between objects. More...
 
template<class JFirst_t , class JSecond_t >
double JMATH::getDot (const JFirst_t &first, const JSecond_t &second)
 Get dot product of objects. More...
 
template<class JFirst_t , class JSecond_t >
double JMATH::getAngle (const JFirst_t &first, const JSecond_t &second)
 Get space angle between objects. More...
 
template<class JFirst_t , class JSecond_t >
double JMATH::getPerpDot (const JFirst_t &first, const JSecond_t &second)
 Get perpendicular dot product of objects. More...
 
template<class T >
JMATH::interpolate (const T &first, const T &second, const double alpha)
 Interpolation between objects. More...
 

Detailed Description

Auxiliary methods for geometrical methods.

In this, the action of each global method is transferred to the corresponding member method of the leading (first) argument, e.g:

getXXX(first, second, ...)

becomes

first.getXXX(second, ...)

Author
mdejong

Definition in file JMathToolkit.hh.