Centroid 2D
A package to find the area weighted center of a convex polygon whose mass is evenly distributed across the surface.
Usage
$ npm i centroid2d
const findCentroid =
Input must be an array of arrays of x and y coordinates.
There is no typechecking for simplicity and speed.
TODO:
Feedback ✉️
It is greatly appreciated! 🎉
https://github.com/limeandcoconut
Cheers!
License
ISC, see license for details.