From 25e0dfdad54ad39217bca0d09114913fe44e2535 Mon Sep 17 00:00:00 2001 From: "SC\\paul.craven" Date: Tue, 21 Nov 2017 09:55:55 -0600 Subject: [PATCH] Fix for last check-in because I forgot to run unit tests on it prior to check in. --- arcade/draw_commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arcade/draw_commands.py b/arcade/draw_commands.py index b6d04fb37..a9d067462 100644 --- a/arcade/draw_commands.py +++ b/arcade/draw_commands.py @@ -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, @@ -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