From b40efbf6db3aa34b6c52f20237632d02d2f1f4dd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrg=20Lehni?= <juerg@scratchdisk.com>
Date: Wed, 22 Feb 2017 17:41:51 +0100
Subject: [PATCH] Fix Line#getSide() imprecisions when points are on the line.

---
 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 a28803e1..ff4c8d92 100644
--- a/src/basic/Line.js
+++ b/src/basic/Line.js
@@ -167,7 +167,7 @@ var Line = Base.extend(/** @lends Line# */{
                 v2y = y - py,
                 // ccw = v2.cross(v1);
                 ccw = v2x * vy - v2y * vx;
-            if (ccw === 0 && !isInfinite) {
+            if (!isInfinite && Numerical.isZero(ccw)) {
                 // If the point is on the infinite line, check if it's on the
                 // finite line too: Project v2 onto v1 and determine ccw based
                 // on which side of the finite line the point lies. Calculate