BoundingBox

MeshBounding

Description

class BoundingBox

Constructor

new BoundingBox(minimum, maximum)

Parameters

Name Type Description
minimum Vector3
maximum Vector3

Members

minimum : Vector3

maximum : Vector3

vectors : Vector3[]

center : Vector3

centerWorld : Vector3

extendSize : Vector3

extendSizeWorld : Vector3

directions : Vector3[]

vectorsWorld : Vector3[]

minimumWorld : Vector3

maximumWorld : Vector3

Methods

getWorldMatrix() Matrix

setWorldMatrix(matrix) BoundingBox

Parameters

Name Type Description
matrix Matrix

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

intersectsSphere(sphere) boolean

Parameters

Name Type Description
sphere BoundingSphere

intersectsMinMax(min, max) boolean

Parameters

Name Type Description
min Vector3
max Vector3

static Intersects(box0, box1) boolean

Parameters

Name Type Description
box0 BoundingBox
box1 BoundingBox

static IntersectsSphere(minPoint, maxPoint, sphereCenter, sphereRadius) boolean

Parameters

Name Type Description
minPoint Vector3
maxPoint Vector3
sphereCenter Vector3

static IsCompletelyInFrustum(boundingVectors, frustumPlanes) boolean

Parameters

Name Type Description
boundingVectors Vector3[]
frustumPlanes Plane[]

static IsInFrustum(boundingVectors, frustumPlanes) boolean

Parameters

Name Type Description
boundingVectors Vector3[]
frustumPlanes Plane[]