Classes | Defines

FWMath.h File Reference

Support functions for mathematical operations. More...

#include <cmath>
Include dependency graph for FWMath.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FWMath
 Support functions for mathematical operations. More...

Defines

#define M_PI   3.14159265358979323846
 Windows math.h doesn't define the PI variable so we have to do it by hand.
#define M_SQRT2   1.41421356237309504880
 Windows math.h doesn't define sqrt(2) so we have to do it by hand.
#define EPSILON   0.00001
 Constant for comparing doubles. Two doubles at most epsilon apart are declared equal.

Detailed Description

Support functions for mathematical operations.

Author:
Christian Frank

Definition in file FWMath.h.