2d-polygon-area 中文文档教程
2d-polygon-area
计算二维多边形的面积
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
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
更多