summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-10-30 18:35:36 -0400
committerJules Laplace <jules@okfoc.us>2014-10-30 18:35:36 -0400
commit0bf5e2b24d9037ef1cb4f7b435892b44d2070aac (patch)
tree7aba801acbb73b5209d6de64aed7216ab401d7b3
parent3cf89843698a52029be64e085051b19471d61174 (diff)
tab
-rw-r--r--public/assets/test/intersect.html2
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