simplify
Public Function
Simplify a line (using Ramer-Douglas-Peucker algorithm).
Parameters
Name | Description |
---|---|
|
An array of points as [x, y, ...][] |
(optional) |
The minimum line distance (also called epsilon). |
Returns
VecLike[]
Simplified array as [x, y, ...][]