simplify

Public Function

Simplify a line (using Ramer-Douglas-Peucker algorithm).

Parameters
NameDescription

points

VecLike[]

An array of points as [x, y, ...][]

tolerance

(optional)

number

The minimum line distance (also called epsilon).

Returns
VecLike[]

Simplified array as [x, y, ...][]

References

VecLike

Edit this page
Last edited on 11 May 2023
shortAngleDistsimplify2