17#include <geos/export.h>
18#include <geos/geom/Coordinate.h>
30 CoordinateXY p0, p1, p2;
32 Triangle(
const CoordinateXY& nP0,
const CoordinateXY& nP1,
const CoordinateXY& nP2)
80 static const CoordinateXY
circumcentre(
const CoordinateXY& p0,
const CoordinateXY& p1,
const CoordinateXY& p2);
91 static double circumradius(
const CoordinateXY& a,
const CoordinateXY& b,
const CoordinateXY& c);
100 return circumradius(p0, p1, p2);
118 static bool isAcute(
const CoordinateXY& a,
const CoordinateXY& b,
const CoordinateXY& c);
128 static bool isCCW(
const CoordinateXY& a,
const CoordinateXY& b,
const CoordinateXY& c);
140 static bool intersects(
const CoordinateXY& a,
const CoordinateXY& b,
const CoordinateXY& c,
141 const CoordinateXY& p);
172 const CoordinateXY& a,
173 const CoordinateXY& b,
174 const CoordinateXY& c);
184 static double length(
const CoordinateXY& a,
const CoordinateXY& b,
const CoordinateXY& c);
202 static double area(
const CoordinateXY& a,
const CoordinateXY& b,
const CoordinateXY& c);
222 double det(
double m00,
double m01,
double m10,
double m11)
const;
Represents a planar triangle, and provides methods for calculating various properties of triangles.
Definition Triangle.h:28
bool isCCW()
Definition Triangle.h:155
bool isAcute()
Definition Triangle.h:161
void circumcentre(CoordinateXY &resultPoint)
Computes the circumcentre of a triangle.
static bool isAcute(const CoordinateXY &a, const CoordinateXY &b, const CoordinateXY &c)
static double circumradius(const CoordinateXY &a, const CoordinateXY &b, const CoordinateXY &c)
double circumradius() const
Definition Triangle.h:98
static bool intersects(const CoordinateXY &a, const CoordinateXY &b, const CoordinateXY &c, const CoordinateXY &p)
void circumcentreDD(CoordinateXY &resultPoint)
static bool isCCW(const CoordinateXY &a, const CoordinateXY &b, const CoordinateXY &c)
void inCentre(CoordinateXY &resultPoint)
The inCentre of a triangle is the point which is equidistant from the sides of the triangle.
bool intersects(const CoordinateXY &p)
Definition Triangle.h:149
static double area(const CoordinateXY &a, const CoordinateXY &b, const CoordinateXY &c)
static const CoordinateXY circumcentre(const CoordinateXY &p0, const CoordinateXY &p1, const CoordinateXY &p2)
static double length(const CoordinateXY &a, const CoordinateXY &b, const CoordinateXY &c)
static double longestSideLength(const CoordinateXY &a, const CoordinateXY &b, const CoordinateXY &c)
Basic namespace for all GEOS functionalities.
Definition geos.h:39