GEOS  3.8.0dev
TrianglePredicate.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2012 Excensus LLC.
7  *
8  * This is free software; you can redistribute and/or modify it under
9  * the terms of the GNU Lesser General Licence as published
10  * by the Free Software Foundation.
11  * See the COPYING file for more information.
12  *
13  **********************************************************************
14  *
15  * Last port: triangulate/quadedge/TrianglePredicate.java r524
16  *
17  **********************************************************************/
18 
19 #ifndef GEOS_TRIANGULATE_QUADEDGE_TRIANGLEPREDICATE_H
20 #define GEOS_TRIANGULATE_QUADEDGE_TRIANGLEPREDICATE_H
21 
22 namespace geos {
23 namespace geom { // geos.geom
24 
25 class Coordinate;
26 
42 public:
55  static bool isInCircleNonRobust(
56  const Coordinate& a, const Coordinate& b, const Coordinate& c,
57  const Coordinate& p);
58 
76  static bool isInCircleNormalized(
77  const Coordinate& a, const Coordinate& b, const Coordinate& c,
78  const Coordinate& p);
79 
80 private:
89  static double triArea(const Coordinate& a,
90  const Coordinate& b, const Coordinate& c);
91 
92 public:
104  static bool isInCircleRobust(
105  const Coordinate& a, const Coordinate& b, const Coordinate& c,
106  const Coordinate& p);
107 } ;
108 
109 } // namespace geos.geom
110 } // namespace geos
111 
112 #endif //GEOS_TRIANGULATE_QUADEDGE_TRIANGLEPREDICATE_H
113 
static bool isInCircleNonRobust(const Coordinate &a, const Coordinate &b, const Coordinate &c, const Coordinate &p)
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
static bool isInCircleNormalized(const Coordinate &a, const Coordinate &b, const Coordinate &c, const Coordinate &p)
Definition: TrianglePredicate.h:41
static bool isInCircleRobust(const Coordinate &a, const Coordinate &b, const Coordinate &c, const Coordinate &p)
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25