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"
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;
Definition: outputpersistenceblock.h:39
Definition: persistable.h:39
Eine Polygonklasse.
Definition: polygon.h:46
Polygon(InputPersistenceBlock &reader)
void reverseVertexOrder()
bool isPointInPolygon(const Vertex &vertex, bool borderBelongsToPolygon=true) const
bool init(int vertexCount_, const Vertex *vertices_)
int32 vertexCount
Specifies the number of Vertecies in the Vertecies array.
Definition: polygon.h:171
Polygon(int vertexCount_, const Vertex *vertices_)
Polygon(const Polygon &other)
Vertex getCentroid() const
Vertex * vertices
COntains the Vertecies of the polygon.
Definition: polygon.h:173
bool isPointInPolygon(int x, int y, bool borderBelongsToPolygon=true) const
void operator+=(const Vertex &delta)
Definition: display_client.h:53