1.0.0 • Published 9 years ago
simplify-flat-array v1.0.0
simplify-flat-array
simplify-js for flat number arrays ( x1, y1, x2, y2,...).
Install
npm i simplify-flat-array
Use
Like simplify-js, except for the points format. See simplify-js demo/doku
simplify(points, tolerance, highQuality)
points - Array - x1, y1, x2, y2,....
tolerance - Number (optional, 1 by default)
highQuality Boolean (optional, false by default) - includes distance-based processing if true
The return value is also a flat number array.
Test
npm run test
The tests from simplify-js are included, only changed the points format.
1.0.0
9 years ago