Permalink
Browse files

tau

Test plan:
crossed fingers

Auditors: eater, alpert
  • Loading branch information...
1 parent dce0071 commit 7adb51792af0bed35332da52cba0c44333620d09 @cbhl cbhl committed Apr 4, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 utils/geom.js
View
@@ -68,7 +68,7 @@
var n = points.length,
v0 = points[0],
angles = [],
- twoPi = 2 * Math.PI;
+ tau = 2 * Math.PI;
out: for (var i = 1; i < n; i++) {
var v1 = points[i];
@@ -91,7 +91,7 @@
}
}
- var angle = (eps + twoPi + Math.atan2(sin, cos)) % twoPi - eps;
+ var angle = (eps + tau + Math.atan2(sin, cos)) % tau - eps;
if (!eq(angle, 0.0)) {
angles.push(angle);
}

0 comments on commit 7adb517

Please sign in to comment.