From 961a74df674c1f1522bbb3f2650581427a9f6060 Mon Sep 17 00:00:00 2001 From: evancz Date: Thu, 4 Oct 2012 01:57:15 -0400 Subject: [PATCH] Change direction of vector rotation. I.e. Add a minus sign. Off by one character! --- core-js/Graphics/Collage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-js/Graphics/Collage.js b/core-js/Graphics/Collage.js index 1af24b1..d8e2e0f 100644 --- a/core-js/Graphics/Collage.js +++ b/core-js/Graphics/Collage.js @@ -278,7 +278,7 @@ function insideShape(point,theta,scale,pos,points) { var x = (point[1] - pos[1]) / scale; var y = (point[2] - pos[2]) / scale; if (theta !== 0) { - var t = 2 * Math.PI * theta; + var t = -2 * Math.PI * theta; var nx = x * Math.cos(t) - y * Math.sin(t); y = x * Math.sin(t) + y * Math.cos(t); x = nx;