Change direction of vector rotation. I.e. Add a minus sign. Off by one character!

This commit is contained in:
evancz 2012-10-04 01:57:15 -04:00
parent 0a1461d7b0
commit 961a74df67

View file

@ -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;