From f0f98daf690973a76f9f8c6600cda68f85c91580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ju=CC=88rg=20Lehni?= Date: Sun, 4 Jan 2015 00:53:56 +0100 Subject: [PATCH] Apply @hkrish's fix in 3781aedb227393e1080201c69544729ee1763e70 to Line.getSignedDistance as well. Relates to #554 --- src/basic/Line.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/Line.js b/src/basic/Line.js index 91843875..0962669e 100644 --- a/src/basic/Line.js +++ b/src/basic/Line.js @@ -166,7 +166,7 @@ var Line = Base.extend(/** @lends Line# */{ vy -= py; } return Numerical.isZero(vx) - ? vy >= 0 ? py - x : x - px + ? vy >= 0 ? px - x : x - px : Numerical.isZero(vy) ? vx >= 0 ? y - py : py - y : -(vy * x - vx * y - px * (py + vy) + py * (px + vx)) /