Daniele Bartolini 10 年之前
父節點
當前提交
c7dfd877e6
共有 1 個文件被更改,包括 4 次插入10 次删除
  1. 4 10
      src/core/math/math_utils.h

+ 4 - 10
src/core/math/math_utils.h

@@ -14,22 +14,16 @@ namespace crown
 
 /// @addtogroup Math
 /// @{
-const float PI = 3.1415926535897932f;
-const float TWO_PI = PI * 2.0f;
-const float HALF_PI = PI * 0.5f;
-const float FLOAT_PRECISION = 1.0e-7f;
-const double DOUBLE_PRECISION = 1.0e-9;
+const float PI                = 3.1415926535897932f;
+const float TWO_PI            = PI * 2.0f;
+const float HALF_PI           = PI * 0.5f;
+const float FLOAT_PRECISION   = 1.0e-7f;
 
 inline bool equals(float a, float b, float precision = FLOAT_PRECISION)
 {
 	return ((b <= (a + precision)) && (b >= (a - precision)));
 }
 
-inline bool equals(double a, double b, double precision = DOUBLE_PRECISION)
-{
-	return ((b <= (a + precision)) && (b >= (a - precision)));
-}
-
 template <typename T>
 inline T min(const T& a, const T& b)
 {