summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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