TrianglePredicate.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2012 Excensus LLC.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************
*
* Last port: triangulate/quadedge/TrianglePredicate.java r524
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <geos/geom/Location.h>
namespace geos {
namespace geom {
class CoordinateXY;
}
}
namespace geos {
namespace triangulate {
namespace quadedge {
class GEOS_DLL TrianglePredicate {
public:
using CoordinateXY = geos::geom::CoordinateXY;
static geom::Location isInCircleNonRobust(
const CoordinateXY& a, const CoordinateXY& b, const CoordinateXY& c,
const CoordinateXY& p);
static geom::Location isInCircleNormalized(
const CoordinateXY& a, const CoordinateXY& b, const CoordinateXY& c,
const CoordinateXY& p);
private:
static double triArea(const CoordinateXY& a,
const CoordinateXY& b, const CoordinateXY& c);
public:
static geom::Location isInCircleRobust(
const CoordinateXY& a, const CoordinateXY& b, const CoordinateXY& c,
const CoordinateXY& p);
} ;
} // namespace geos.triangulate.quadedge
} // namespace geos.triangulate
} // namespace geos
geos::triangulate::quadedge::TrianglePredicate
Algorithms for computing values and predicates associated with triangles.
Definition TrianglePredicate.h:49
geos::triangulate::quadedge::TrianglePredicate::isInCircleRobust
static geom::Location isInCircleRobust(const CoordinateXY &a, const CoordinateXY &b, const CoordinateXY &c, const CoordinateXY &p)
geos::triangulate::quadedge::TrianglePredicate::isInCircleNonRobust
static geom::Location isInCircleNonRobust(const CoordinateXY &a, const CoordinateXY &b, const CoordinateXY &c, const CoordinateXY &p)
geos::triangulate::quadedge::TrianglePredicate::isInCircleNormalized
static geom::Location isInCircleNormalized(const CoordinateXY &a, const CoordinateXY &b, const CoordinateXY &c, const CoordinateXY &p)
geos::geom
Definition Angle.h:26
geos::geom::Location
Location
Constants representing the location of a point relative to a geometry.
Definition Location.h:32
geos::triangulate::quadedge
Classes to implement a topological subdivision of quadeges, to support creating triangulations and Vo...
Definition ConcaveHull.h:33
geos::triangulate
Classes to compute Delaunay triangulations.
Definition ConcaveHull.h:32
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38