[geos-commits] [SCM] GEOS branch master updated. 949b1eba15df850437a805497accccdaaaf99bac

git at osgeo.org git at osgeo.org
Thu Dec 13 14:34:21 PST 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, master has been updated
       via  949b1eba15df850437a805497accccdaaaf99bac (commit)
      from  a48d5847c19d2f8e30f4def9d02b19d2425dfa26 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 949b1eba15df850437a805497accccdaaaf99bac
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Thu Dec 13 14:33:48 2018 -0800

    Whoops, forgot the implementation of CGAlgorithmsDD::signOfDet2x2
    to go with the test case :/

diff --git a/include/geos/algorithm/CGAlgorithmsDD.h b/include/geos/algorithm/CGAlgorithmsDD.h
index d67660e..9ff8cff 100644
--- a/include/geos/algorithm/CGAlgorithmsDD.h
+++ b/include/geos/algorithm/CGAlgorithmsDD.h
@@ -108,6 +108,8 @@ public:
                              const geom::Coordinate& q1, const geom::Coordinate& q2,
                              geom::Coordinate &rv);
 
+    static int signOfDet2x2(double dx1, double dy1, double dx2, double dy2);
+
 
 protected:
 
diff --git a/src/algorithm/CGAlgorithmsDD.cpp b/src/algorithm/CGAlgorithmsDD.cpp
index dedd617..89f9e48 100644
--- a/src/algorithm/CGAlgorithmsDD.cpp
+++ b/src/algorithm/CGAlgorithmsDD.cpp
@@ -72,6 +72,15 @@ int CGAlgorithmsDD::signOfDet2x2(DD &x1, DD &y1, DD &x2, DD &y2)
     return OrientationDD(d);
 }
 
+int CGAlgorithmsDD::signOfDet2x2(double dx1, double dy1, double dx2, double dy2)
+{
+    DD x1(dx1);
+    DD y1(dy1);
+    DD x2(dx2);
+    DD y2(dy2);
+    return CGAlgorithmsDD::signOfDet2x2(x1, y1, x2, y2);
+}
+
 int CGAlgorithmsDD::orientationIndexFilter(const Coordinate& pa,
         const Coordinate& pb,
         const Coordinate& pc)

-----------------------------------------------------------------------

Summary of changes:
 include/geos/algorithm/CGAlgorithmsDD.h | 2 ++
 src/algorithm/CGAlgorithmsDD.cpp        | 9 +++++++++
 2 files changed, 11 insertions(+)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list