BoundingInfo

MeshBounding

Description

class BoundingInfo

Constructor

new BoundingInfo(minimum, maximum)

Parameters

Name Type Description
minimum Vector3
maximum Vector3

Members

minimum : Vector3

maximum : Vector3

boundingBox : BoundingBox

boundingSphere : BoundingSphere

isLocked : boolean

diagonalLength : number

Gets the world distance between the min and max points of the bounding box

Methods

update(world) void

Parameters

Name Type Description
world Matrix

centerOn(center, extend) BoundingInfo

Recreate the bounding info to be centered around a specific point given a specific extend.

Parameters

Name Type Description
center Vector3 New center of the bounding info
extend Vector3 New extend of the bounding info

isInFrustum(frustumPlanes) boolean

Parameters

Name Type Description
frustumPlanes Plane[]

isCompletelyInFrustum(frustumPlanes) boolean

Parameters

Name Type Description
frustumPlanes Plane[]

intersectsPoint(point) boolean

Parameters

Name Type Description
point Vector3

intersects(boundingInfo, precise) boolean

Parameters

Name Type Description
boundingInfo BoundingInfo
precise boolean