bound-points:查找一组点的边界框

时间:2024-05-25 17:37:46
【文件属性】:

文件名称:bound-points:查找一组点的边界框

文件大小:3KB

文件格式:ZIP

更新时间:2024-05-25 17:37:46

JavaScript

界点 根据任意维度中的一组点计算边界框。 例子 var getBounds = require ( 'bound-points' ) var points = [ [ - 1 , 1 ] , [ 5 , 10 ] , [ - 8 , 13 ] ] console . log ( '2d:' , getBounds ( points ) ) var mesh = require ( 'bunny' ) console . log ( '3d:' , getBounds ( mesh . positions ) ) 输出: 2d: [ [ -8, 1 ], [ 5, 13 ] ] 3d: [ [ -4.958475, -0.003149, -3.729833 ], [ 4.94885, 9.654748, 3.810639 ] ] 安装 npm i bound-points 原料药 v


【文件预览】:
bound-points-master
----.gitignore(109B)
----README.md(805B)
----test()
--------test.js(203B)
----LICENSE(1KB)
----package.json(794B)
----example()
--------example.js(192B)
----bounds.js(408B)

网友评论