Newline Proliferating Maniac
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

2d-polygon-area

1.0.0 • Public • Published

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

license

MIT

install

npm i 2d-polygon-area

Downloadsweekly downloads

201

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability