LogoPixi’VN
pixi-jsVariables

Variable: earcut

> const earcut: typeof earcutModule

Defined in: node_modules/pixi.js/lib/utils/utils.d.ts:19

A polygon triangulation library

See

https://github.com/mapbox/earcut

Param

A flat array of vertex coordinates

Param

An array of hole indices

Param

The number of coordinates per vertex in the input array

Returns

Triangulated polygon

Advanced