Skip to content

Commit

Permalink
Merge branch 'Version_1.2' of github.com:pvcraven/arcade into Version…
Browse files Browse the repository at this point in the history
…_1.2
  • Loading branch information
pvcraven committed Nov 25, 2017
2 parents dd10d96 + 5dcf267 commit cad5f73
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arcade/draw_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from typing import List
from arcade.arcade_types import Color
from arcade.arcade_types import PointList
from arcade.geometry import PRECISION


def rotate_point(x: float, y: float, cx: float, cy: float,
Expand All @@ -39,8 +40,8 @@ def rotate_point(x: float, y: float, cx: float, cy: float,
temp_y * math.cos(math.radians(angle))

# translate back
x = rotated_x + cx
y = rotated_y + cy
x = round(rotated_x + cx, PRECISION)
y = round(rotated_y + cy, PRECISION)

return x, y

Expand Down

0 comments on commit cad5f73

Please sign in to comment.