2d-polygon-area
v1.0.0
Published
compute the area of a 2d polygon
Downloads
6,355
Readme
2d-polygon-area
compute the area of a 2d polygon
install
npm install 2d-polygon-area
use
var square = [
[0, 0],
[10, 0],
[10, 10],
[0, 10]
].reverse();
console.log(area(square));
// outputs: 100