From 23b25d495466d66ec7f167bb1c2328c0e4378765 Mon Sep 17 00:00:00 2001 From: Thomas Breloff Date: Wed, 10 Aug 2016 09:42:21 -0400 Subject: [PATCH] fixed rotate --- src/components.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components.jl b/src/components.jl index d6efebb6..d9cd13c2 100644 --- a/src/components.jl +++ b/src/components.jl @@ -211,8 +211,9 @@ function rotate!(shape::Shape, Θ::Real, c = center(shape)) x, y = shape_coords(shape) cx, cy = c for i=1:length(x) - x[i] = rotate_x(x[i], y[i], Θ, cx, cy) - y[i] = rotate_y(x[i], y[i], Θ, cx, cy) + xi = rotate_x(x[i], y[i], Θ, cx, cy) + yi = rotate_y(x[i], y[i], Θ, cx, cy) + x[i], y[i] = xi, yi end shape end