Kaynağa Gözat

Nothing worth mentioning

Panagiotis Christopoulos Charitos 15 yıl önce
ebeveyn
işleme
5ea08840a7
1 değiştirilmiş dosya ile 3 ekleme ve 8 silme
  1. 3 8
      src/Math/MathFuncs.inl.h

+ 3 - 8
src/Math/MathFuncs.inl.h

@@ -61,7 +61,7 @@ inline static float polynomialSinQuadrant( float a )
 inline void sinCos( float a, float& sina, float& cosa )
 {
 	bool negative = false;
-	if (a < 0.0)
+	if( a < 0.0 )
 	{
 		a = -a;
 		negative = true;
@@ -100,13 +100,8 @@ inline void sinCos( float a, float& sina, float& cosa )
 	if( negative )
 		sina = -sina;
 
-	// a unit test
-	#if defined( DEBUG_ENABLED )
-		float sina_ = M::sin(a);
-		float cosa_ = M::cos(a);
-
-		DEBUG_ERR( isZero( sina_ - sina ) || isZero( cosa_ - cosa ) );
-	#endif
+	/*DEBUG_ERR( !isZero( M::sin(a) - sina ) );
+	DEBUG_ERR( !isZero( M::cos(a) - cosa ) );*/
 }