Ocular Engine
Definitions.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_ENGINE_MATH_DEFINITIONS__H__
19 #define __H__OCULAR_ENGINE_MATH_DEFINITIONS__H__
20 
21 //------------------------------------------------------------------------------------------
22 
27 namespace Ocular
28 {
33  namespace Math
34  {
35  static const double ONE_OVER_TWO = 0.5;
36 
37  static const double PI = 3.14159265;
38  static const double PI_TWO = 6.28318531;
39  static const double PI_OVER_TWO = 1.57079632;
40  static const double PI_OVER_180 = 0.01745329;
41  static const double PI_UNDER_180 = 57.2957796;
42  static const double PHI = 1.61803399;
43 
44  static const double EPSILON_DOUBLE = 0.0001;
45  static const float EPSILON_FLOAT = 0.0001f;
46 
47  static const float RAY_LINE_LENGTH = 1000000000000.0f;
48 
49  static const float NORMAL_RANGE = 1000000000000.0f;
50  static const float HALF_NORMAL_RANGE = 500000000000.0f;
51  }
55 }
60 //------------------------------------------------------------------------------------------
61 
62 #endif
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70