diff engine/core/util/math/angles.h @ 621:356634098bd9

* Removed the image chunking size variable from engine settings. * Replaced the existing define of PI and added some math related static const variables
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 01 Oct 2010 14:09:47 +0000
parents f27880d4c08c
children 07b1cf8e92b5
line wrap: on
line diff
--- a/engine/core/util/math/angles.h	Thu Sep 30 21:24:55 2010 +0000
+++ b/engine/core/util/math/angles.h	Fri Oct 01 14:09:47 2010 +0000
@@ -52,7 +52,7 @@
 		double dy = (c2.y - c1.y);
 		double dx = (c2.x - c1.x);
 
-		int angle = static_cast<int>(atan2(-dy,dx)*(180.0/M_PI));
+		int angle = static_cast<int>(atan2(-dy,dx)*(180.0/DBL_PI));
 
 		return angle;
 	}