Earcut

Undocumented in source.
struct Earcut (
N
Polygon
) {}

Members

Aliases

ASeq
alias ASeq = TemplateArgsOf!Polygon
Undocumented in source.
ASeq2
alias ASeq2 = TemplateArgsOf!VecPoint
Undocumented in source.
Point
alias Point = typeof(VecPoint.init[0])
Undocumented in source.
Point
alias Point = ASeq2[0]
Undocumented in source.
VecPoint
alias VecPoint = typeof(Polygon.init[0])
Undocumented in source.
VecPoint
alias VecPoint = ASeq[0]
Undocumented in source.

Functions

area
double area(Node* p, Node* q, Node* r)
Undocumented in source. Be warned that the author may not have intended to support it.
cureLocalIntersections
Node* cureLocalIntersections(Node* start)
Undocumented in source. Be warned that the author may not have intended to support it.
earcutLinked
void earcutLinked(Node* ear, int pass)
Undocumented in source. Be warned that the author may not have intended to support it.
eliminateHole
void eliminateHole(Node* hole, Node* outerNode)
Undocumented in source. Be warned that the author may not have intended to support it.
eliminateHoles
Node* eliminateHoles(Polygon points, Node* outerNode)
Undocumented in source. Be warned that the author may not have intended to support it.
equals
bool equals(Node* p1, Node* p2)
Undocumented in source. Be warned that the author may not have intended to support it.
filterPoints
Node* filterPoints(Node* start, Node* end)
Undocumented in source. Be warned that the author may not have intended to support it.
findHoleBridge
Node* findHoleBridge(Node* hole, Node* outerNode)
Undocumented in source. Be warned that the author may not have intended to support it.
getLeftmost
Node* getLeftmost(Node* start)
Undocumented in source. Be warned that the author may not have intended to support it.
indexCurve
void indexCurve(Node* start)
Undocumented in source. Be warned that the author may not have intended to support it.
insertNode
Node* insertNode(size_t i, Point pt, Node* last)
Undocumented in source. Be warned that the author may not have intended to support it.
intersects
bool intersects(Node* p1, Node* q1, Node* p2, Node* q2)
Undocumented in source. Be warned that the author may not have intended to support it.
intersectsPolygon
bool intersectsPolygon(Node* a, Node* b)
Undocumented in source. Be warned that the author may not have intended to support it.
isEar
bool isEar(Node* ear)
Undocumented in source. Be warned that the author may not have intended to support it.
isEarHashed
bool isEarHashed(Node* ear)
Undocumented in source. Be warned that the author may not have intended to support it.
isValidDiagonal
bool isValidDiagonal(Node* a, Node* b)
Undocumented in source. Be warned that the author may not have intended to support it.
linkedList
Node* linkedList(Ring points, bool clockwise)
Undocumented in source. Be warned that the author may not have intended to support it.
locallyInside
bool locallyInside(Node* a, Node* b)
Undocumented in source. Be warned that the author may not have intended to support it.
middleInside
bool middleInside(Node* a, Node* b)
Undocumented in source. Be warned that the author may not have intended to support it.
onSegment
bool onSegment(Node* p, Node* q, Node* r)
Undocumented in source. Be warned that the author may not have intended to support it.
pointInTriangle
bool pointInTriangle(double ax, double ay, double bx, double by, double cx, double cy, double px, double py)
Undocumented in source. Be warned that the author may not have intended to support it.
removeNode
void removeNode(Node* p)
Undocumented in source. Be warned that the author may not have intended to support it.
run
void run(Polygon points)
Undocumented in source. Be warned that the author may not have intended to support it.
sectorContainsSector
bool sectorContainsSector(Node* m, Node* p)
Undocumented in source. Be warned that the author may not have intended to support it.
sign
int sign(double val)
Undocumented in source. Be warned that the author may not have intended to support it.
sortLinked
Node* sortLinked(Node* list)
Undocumented in source. Be warned that the author may not have intended to support it.
splitEarcut
void splitEarcut(Node* start)
Undocumented in source. Be warned that the author may not have intended to support it.
splitPolygon
Node* splitPolygon(Node* a, Node* b)
Undocumented in source. Be warned that the author may not have intended to support it.
zOrder
int32_t zOrder(double x_, double y_)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Node
struct Node
Undocumented in source.
ObjectPool
struct ObjectPool(T)
Undocumented in source.

Variables

hashing
bool hashing;
Undocumented in source.
indices
Dvector!N indices;
Undocumented in source.
inv_size
double inv_size;
maxX
double maxX;
maxY
double maxY;
Undocumented in source.
minX
double minX;
Undocumented in source.
minY
double minY;
Undocumented in source.
nodes
ObjectPool!Node nodes;
Undocumented in source.
vertices
size_t vertices;
Undocumented in source.

Meta