From b478ad79508f5a06e8c0fc5937b28585c747fb04 Mon Sep 17 00:00:00 2001 From: neoraider Date: Wed, 31 Oct 2007 23:03:04 +0000 Subject: zoomedit: Speichern jetzt m?glich. --- Polygon.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Polygon.cpp') diff --git a/Polygon.cpp b/Polygon.cpp index 8b32bb4..650fbb0 100644 --- a/Polygon.cpp +++ b/Polygon.cpp @@ -17,12 +17,6 @@ float Polygon::signedArea() const { return d/2; } -Polygon::Direction Polygon::getDirection() const { - float area = signedArea(); - - return (area > 0) ? Triangle::CW : (area < 0) ? Triangle::CCW : Triangle::UNKNOWN; -} - float Polygon::area() const { return fabsf(signedArea()); } @@ -170,6 +164,12 @@ bool Polygon::intersections(std::vector *intersections) const { return ret; } +Polygon::Direction Polygon::getDirection() const { + float area = signedArea(); + + return (area > 0) ? Triangle::CW : (area < 0) ? Triangle::CCW : Triangle::UNKNOWN; +} + bool Polygon::isSimple() const { return !intersections(); } -- cgit v1.2.3