WINTERMUTE: Express 180.0f as float in TransformTools

This commit is contained in:
Tobia Tesan 2013-07-15 22:59:57 +02:00
parent d2d72c0110
commit 0d407fd206

View File

@ -27,7 +27,7 @@
namespace Wintermute {
FloatPoint TransformTools::transformPoint(const FloatPoint &point, const float rotate, const Point32 &zoom, const bool mirrorX, const bool mirrorY) {
float rotateRad = rotate * M_PI / 180;
float rotateRad = rotate * M_PI / 180.0f;
FloatPoint newPoint;
newPoint.x = (point.x * cos(rotateRad) - point.y * sin(rotateRad))*zoom.x/kDefaultZoomX;
newPoint.y = (point.x * sin(rotateRad) + point.y * cos(rotateRad))*zoom.y/kDefaultZoomY;