Change direction of vector rotation. I.e. Add a minus sign. Off by one character!
This commit is contained in:
parent
0a1461d7b0
commit
961a74df67
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue