From 0bf5e2b24d9037ef1cb4f7b435892b44d2070aac Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 30 Oct 2014 18:35:36 -0400 Subject: tab --- public/assets/test/intersect.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/assets/test/intersect.html') 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 -- cgit v1.2.3-70-g09d2