diff options
author | David Fioramonti | 2018-05-24 17:48:55 -0700 |
---|---|---|
committer | Thierry Crozat | 2018-07-03 23:08:48 +0100 |
commit | e00881804f4e3be2f332b6fdd67885f8af124e6d (patch) | |
tree | 5b1a7774e5bb7dc502c449d050f5805cf2663eb4 /graphics/transform_tools.cpp | |
parent | 8e1f71232737ca5cb3b57f664e3e4e36137f9181 (diff) | |
download | scummvm-rg350-e00881804f4e3be2f332b6fdd67885f8af124e6d.tar.gz scummvm-rg350-e00881804f4e3be2f332b6fdd67885f8af124e6d.tar.bz2 scummvm-rg350-e00881804f4e3be2f332b6fdd67885f8af124e6d.zip |
GFX: Use degree conversion common math funcs
Diffstat (limited to 'graphics/transform_tools.cpp')
-rw-r--r-- | graphics/transform_tools.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/transform_tools.cpp b/graphics/transform_tools.cpp index 6e87b6321a..a0617ff236 100644 --- a/graphics/transform_tools.cpp +++ b/graphics/transform_tools.cpp @@ -22,12 +22,13 @@ #include "graphics/transform_tools.h" +#include "common/math.h" #include <math.h> namespace Graphics { FloatPoint TransformTools::transformPoint(FloatPoint point, const float rotate, const Common::Point &zoom, const bool mirrorX, const bool mirrorY) { - float rotateRad = rotate * M_PI / 180.0f; + float rotateRad = Common::deg2rad<float>(rotate); float x = point.x; float y = point.y; x = (x * zoom.x) / kDefaultZoomX; |