mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-01 06:58:34 +00:00
WINTERMUTE: Express 180.0f as float in TransformTools
This commit is contained in:
parent
d2d72c0110
commit
0d407fd206
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user