The BoundBox class is used for creating a bounding box.

BoundBox 类用于创建包围盒。

实现

  • IClone

构造函数

属性

max: Vector3

The maximum vertex of the bounding box.

包围盒的最大顶点。

min: Vector3

The minimum vertex of the bounding box.

包围盒的最小顶点。

方法

  • 参数

    • destObject: BoundBox

      The object to receive the clone.

    返回 void

    Clones this bounding box to another object.

    克隆这个包围盒到另一个对象。

  • 参数

    • corners: Vector3[]

      The array to store the corner vertices.

    返回 void

    Retrieves the 8 corner vertices of the bounding box.

    获取包围盒的8个角顶点。

  • 参数

    • center: Vector3

      The center point of the bounding box.

    • extent: Vector3

      The axis radius of the bounding box.

    返回 void

    Sets the center and extents of the bounding box.

    设置包围盒的中心点和范围