From 0820c9f0ffa19ba234bcc6858961c9e824f0ffa9 Mon Sep 17 00:00:00 2001
From: yy1717 <fctom1215@outlook.com>
Date: 星期四, 16 四月 2020 18:10:26 +0800
Subject: [PATCH] 科目三

---
 lib/src/main/cpp/test_common/Geometry.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/src/main/cpp/test_common/Geometry.cpp b/lib/src/main/cpp/test_common/Geometry.cpp
index 3b80f09..ca4cd36 100644
--- a/lib/src/main/cpp/test_common/Geometry.cpp
+++ b/lib/src/main/cpp/test_common/Geometry.cpp
@@ -427,9 +427,9 @@
 {
     double lr = (p1.X-p3.X)*(p2.Y-p3.Y) - (p1.Y-p3.Y)*(p2.X-p3.X);
 
-    if (fabs(lr) <= EPSILON) {
+    if (fabs(lr) <= EPSILON2) {
         double fb = (p2.X-p1.X)*(p3.X-p1.X) + (p2.Y-p1.Y)*(p3.Y-p1.Y);
-        if (fabs(fb) <= EPSILON)
+        if (fabs(fb) <= EPSILON2)
             return 0;
         else if (fb > 0)
             return 2;

--
Gitblit v1.8.0