Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into Version_1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
pvcraven committed Nov 25, 2017
2 parents cad5f73 + 25e0dfd commit a1633c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arcade/draw_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
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 @@ -40,8 +39,9 @@ def rotate_point(x: float, y: float, cx: float, cy: float,
temp_y * math.cos(math.radians(angle))

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

return x, y

Expand Down

0 comments on commit a1633c4

Please sign in to comment.