diff engine/core/util/math/matrix.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 16c2b3ee59ce
children 07b1cf8e92b5
line wrap: on
line diff
--- a/engine/core/util/math/matrix.h	Thu Sep 30 21:24:55 2010 +0000
+++ b/engine/core/util/math/matrix.h	Fri Oct 01 14:09:47 2010 +0000
@@ -118,8 +118,8 @@
 					y/=mag;
 					z/=mag;
 				}
-				T c = cos(angle*M_PI/180);
-				T s = sin(angle*M_PI/180);
+				T c = cos(angle*DBL_PI/180);
+				T s = sin(angle*DBL_PI/180);
 				m0 = x*x*(1-c)+c;
 				m1 = y*x*(1-c)+z*s;
 				m2 = z*x*(1-c)-y*s;
@@ -379,7 +379,7 @@
 	 */
 	template<typename T>
 	std::ostream& operator<<(std::ostream& os, const Matrix<T>& m) {
-		
+
 		return os << "\n|" << m[0] << "," << m[4] << "," << m[8] << ","  << m[12] << "|\n" << \
 		               "|" << m[1] << "," << m[5] << "," << m[9] << ","  << m[13] << "|\n" << \
 		               "|" << m[2] << "," << m[6] << "," << m[10] << "," << m[14] << "|\n" << \