diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-10-30 18:35:36 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-10-30 18:35:36 -0400 |
| commit | 0bf5e2b24d9037ef1cb4f7b435892b44d2070aac (patch) | |
| tree | 7aba801acbb73b5209d6de64aed7216ab401d7b3 | |
| parent | 3cf89843698a52029be64e085051b19471d61174 (diff) | |
tab
| -rw-r--r-- | public/assets/test/intersect.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/assets/test/intersect.html b/public/assets/test/intersect.html index 0a8526e..5e16f2e 100644 --- a/public/assets/test/intersect.html +++ b/public/assets/test/intersect.html @@ -101,7 +101,7 @@ function drawPoint (p) { ctx.fillRect(x, y, r*2, r*2) } function perp (va, vb) { - return (va.y.a - va.x.a) * (vb.y.b - vb.x.b) - (va.y.b - va.x.b) * (vb.y.a - vb.x.a) + return (va.y.a - va.x.a) * (vb.y.b - vb.x.b) - (va.y.b - va.x.b) * (vb.y.a - vb.x.a) } function is_collinear (p, vec) { var on_x, on_y |
