vertices-bounding-box:计算一组顶点的边界框

时间:2021-06-21 20:05:29
【文件属性】:
文件名称:vertices-bounding-box:计算一组顶点的边界框
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-21 20:05:29
JavaScript 顶点边界框 计算一组顶点的边界框 适用于任意维度的顶点。 安装 $ npm install vertices-bounding-box 用法 var boundingBox = require ( 'vertices-bounding-box' ) ; var positions = [ [ - 1 , 0 , 0 ] , [ 1 , 0 , - 1 ] , [ 0 , - 1 , 0 ] , [ 0 , 1 , 1 ] ] ; var bb = boundingBox ( positions ) ; console . log ( bb ) ; /* [ [ -1, -1, -1 ], [ 1, 1, 1 ] ] */
【文件预览】:
vertices-bounding-box-master
----LICENSE(1KB)
----README.md(476B)
----.gitignore(19B)
----index.js(553B)
----package.json(497B)

网友评论