comparison 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
comparison
equal deleted inserted replaced
620:853d25234671 621:356634098bd9
50 ExactModelCoordinate c2 = loc2.getMapCoordinates(); 50 ExactModelCoordinate c2 = loc2.getMapCoordinates();
51 51
52 double dy = (c2.y - c1.y); 52 double dy = (c2.y - c1.y);
53 double dx = (c2.x - c1.x); 53 double dx = (c2.x - c1.x);
54 54
55 int angle = static_cast<int>(atan2(-dy,dx)*(180.0/M_PI)); 55 int angle = static_cast<int>(atan2(-dy,dx)*(180.0/DBL_PI));
56 56
57 return angle; 57 return angle;
58 } 58 }
59 } 59 }
60 60