31 #ifndef SWORD25_POLYGON_H 32 #define SWORD25_POLYGON_H 35 #include "sword25/kernel/common.h" 36 #include "sword25/kernel/persistable.h" 37 #include "sword25/math/vertex.h" 90 bool init(
int vertexCount_,
const Vertex *vertices_);
127 bool isPointInPolygon(
int x,
int y,
bool borderBelongsToPolygon =
true)
const;
136 bool isLineInterior(
const Vertex &a,
const Vertex &b)
const;
139 bool isLineExterior(
const Vertex &a,
const Vertex &b)
const;
190 Vertex computeCentroid()
const;
197 bool computeIsCW()
const;
214 bool checkForSelfIntersection()
const;
222 int findLRVertexIndex()
const;
224 bool isLineInCone(
int startVertexIndex,
const Vertex &endVertex,
bool includeEdges)
const;
Vertex * vertices
COntains the Vertecies of the polygon.
Definition: polygon.h:173
Eine Polygonklasse.
Definition: polygon.h:46
int32 vertexCount
Specifies the number of Vertecies in the Vertecies array.
Definition: polygon.h:171
void operator+=(const Vertex &delta)
bool init(int vertexCount_, const Vertex *vertices_)
Definition: persistable.h:39
Definition: display_client.h:53
bool isPointInPolygon(const Vertex &vertex, bool borderBelongsToPolygon=true) const
void reverseVertexOrder()
Definition: outputpersistenceblock.h:39
Vertex getCentroid() const