Skip to content

格式

typescript
new Bounds ((cnt, ext))

描述

创建一个新的包围盒。

参数

参数名类型描述
cntVector3?包围盒的中心点
extVector3?包围盒的范围

代码示例

typescript
let bounds = new Bounds(new Vector3(1, 1, 1), new Vector3(1, 1, 1));