used for creating a bounding volume.

用于创建包围体。

实现

  • IClone

构造函数

访问器

方法

  • 参数

    • bounds: Bounds

      The bounding box to calculate the intersection volume.

    返回 number

    -1 if the two bounding boxes do not intersect; when not 0, the return value is the intersecting volume

    Calculate whether two bounding boxes intersect

    计算两个包围盒是否相交

  • 参数

    • destObject: Bounds

      The destination object to clone into.

    返回 void

    Clones this bounds into another object.

    克隆这个边界到另一个对象。

  • 参数

    • corners: Vector3[]

      The array to store the corner vertices.

    返回 void

    Retrieves the eight corner vertices of the bounding box.

    获取包围盒的八个角顶点

  • 参数

    返回 boolean

    true if the point is inside the bounding box; otherwise, false.

    Determines whether the bounding box contains a point.

    判断包围盒是否包含一个点。