three3d/extras/earcut library

Classes

Earcut
Port from https://github.com/mapbox/earcut (v2.2.2)
Node

Functions

area(dynamic p, dynamic q, dynamic r) → dynamic
compareX(dynamic a, dynamic b) int
cureLocalIntersections(dynamic start, dynamic triangles, dynamic dim) → dynamic
earcutLinked(Node? ear, dynamic triangles, dynamic dim, dynamic minX, dynamic minY, num? invSize, num? pass) → dynamic
eliminateHole(dynamic hole, dynamic outerNode) → dynamic
eliminateHoles(dynamic data, dynamic holeIndices, dynamic outerNode, dynamic dim) → dynamic
equals(dynamic p1, dynamic p2) → dynamic
filterPoints(dynamic start, dynamic end) → dynamic
findHoleBridge(dynamic hole, dynamic outerNode) → dynamic
getLeftmost(dynamic start) → dynamic
indexCurve(Node start, dynamic minX, dynamic minY, dynamic invSize) → dynamic
insertNode(dynamic i, dynamic x, dynamic y, dynamic last) → dynamic
intersects(dynamic p1, dynamic q1, dynamic p2, dynamic q2) → dynamic
intersectsPolygon(dynamic a, dynamic b) → dynamic
isEar(dynamic ear) → dynamic
isEarHashed(dynamic ear, dynamic minX, dynamic minY, dynamic invSize) → dynamic
isValidDiagonal(dynamic a, dynamic b) → dynamic
linkedList(dynamic data, dynamic start, dynamic end, dynamic dim, dynamic clockwise) → dynamic
locallyInside(dynamic a, dynamic b) → dynamic
middleInside(dynamic a, dynamic b) → dynamic
onSegment(dynamic p, dynamic q, dynamic r) → dynamic
pointInTriangle(dynamic ax, dynamic ay, dynamic bx, dynamic by, dynamic cx, dynamic cy, dynamic px, dynamic py) → dynamic
removeNode(dynamic p) → dynamic
sectorContainsSector(dynamic m, dynamic p) → dynamic
sign(num num) int
signedArea(dynamic data, dynamic start, dynamic end, dynamic dim) → dynamic
sortLinked(dynamic list) → dynamic
splitEarcut(dynamic start, dynamic triangles, dynamic dim, dynamic minX, dynamic minY, dynamic invSize) → dynamic
splitPolygon(dynamic a, dynamic b) → dynamic
zOrder(num x0, num y0, num minX, num minY, num invSize) → dynamic