-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathH3DMath.cpp
More file actions
20 lines (18 loc) · 931 Bytes
/
H3DMath.cpp
File metadata and controls
20 lines (18 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "H3DMath.h"
const double H3DMath::PI = 3.14159265358979323846;
const double H3DMath::TWO_PI = 2.0f * PI;
const double H3DMath::HALF_PI = 0.5f * PI;
const double H3DMath::ONEFOURTH_PI = 0.25f * PI;
const double H3DMath::_1DivPI = 1.0/PI;
const double H3DMath::_1DivTWO_PI = 1.0/TWO_PI;
const double H3DMath::E = 2.71828182845904523536;
const double H3DMath::SQRT_TWO = 1.41421356237309504880;
const double H3DMath::SQRT_THREE = 1.73205080756887729352;
const double H3DMath::SQRT_1OVER2 = 0.70710678118654752440;
const double H3DMath::SQRT_1OVER3 = 0.57735026918962576450;
const double H3DMath::M_DEG2RAD = PI / 180.0;
const double H3DMath::M_RAD2DEG = 180.0 / PI;
const double H3DMath::M_SEC2MS = 1000.0;
const double H3DMath::M_MS2SEC = 0.001;
//const double H3DMath::INFINITY = 1e30f; _builtin_inf() instead
const double H3DMath::LF_COMP_EPS = 1e-6; //compare epsilon