diff options
author | bubnikv <bubnikv@gmail.com> | 2017-03-02 22:44:28 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-03-02 22:44:28 +0300 |
commit | cd7134e6f66fb7d999394f14edc21557d97f0cb4 (patch) | |
tree | 146a757a7fc7d9759d51d454c69f03059e2abbbd /xs | |
parent | c2ee73d21115b2077a0e7ed2d6f9b31f995b1b9e (diff) |
Revert "Fix: Orientation() has been declared inline, therefore not exported."
This reverts commit c2ee73d21115b2077a0e7ed2d6f9b31f995b1b9e.
Diffstat (limited to 'xs')
-rw-r--r-- | xs/src/clipper.cpp | 6 | ||||
-rw-r--r-- | xs/src/clipper.hpp | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/xs/src/clipper.cpp b/xs/src/clipper.cpp index 7ead760bf..1eac45a70 100644 --- a/xs/src/clipper.cpp +++ b/xs/src/clipper.cpp @@ -285,6 +285,12 @@ inline Int128 Int128Mul (long64 lhs, long64 rhs) // Miscellaneous global functions
//------------------------------------------------------------------------------
+inline bool Orientation(const Path &poly)
+{
+ return Area(poly) >= 0;
+}
+//------------------------------------------------------------------------------
+
double Area(const Path &poly)
{
int size = (int)poly.size();
diff --git a/xs/src/clipper.hpp b/xs/src/clipper.hpp index e62e27e89..11626e396 100644 --- a/xs/src/clipper.hpp +++ b/xs/src/clipper.hpp @@ -186,8 +186,8 @@ private: friend class Clipper; //to access AllNodes
};
+bool Orientation(const Path &poly);
double Area(const Path &poly);
-inline bool Orientation(const Path &poly) { return Area(poly) >= 0; }
int PointInPolygon(const IntPoint &pt, const Path &path);
void SimplifyPolygon(const Path &in_poly, Paths &out_polys, PolyFillType fillType = pftEvenOdd);
|