simplify method
- double tolerance
Simplify polyline using Ramer-Douglas-Peucker algorithm
Removes points closer than tolerance to the simplified line.
Implementation
Polyline simplify(double tolerance) {
if (points.length <= 2) return this;
return Polyline(_rdpSimplify(points, tolerance));
}