Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deviation ¶
Deviation returns a percentage difference between the polygon area and its triangulation area; used to verify correctness of triangulation
func Earcut ¶
Earcut returns an int array of vertex indices that make up the triangles of the polygon.
The polygon vertices should be passed as a flat array of float64 values.
holeIndices is an array of integers pointing to the vertex index (not the data index) of the start of each hole (if any).
dim is the number of values per vertex. Only the first two values (x & y) will be considered when constructing the triangles.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.