Skip to content

Documentation / scene / BoundingVolume

Interface: BoundingVolume

Defined in: libs/scene/src/utility/bounding_volume.ts:8

Base interface for any kind of bounding volumes

Methods

clone()

clone(): BoundingVolume

Defined in: libs/scene/src/utility/bounding_volume.ts:12

Creates a new bounding volume by copying from this bounding volume

Returns

BoundingVolume


transform()

transform(matrix): BoundingVolume

Defined in: libs/scene/src/utility/bounding_volume.ts:18

Creates a new bounding volume by tranforming this bounding volume by a matrix

Parameters

matrix

Matrix4x4

The transform matrix

Returns

BoundingVolume

The created bounding volume


behindPlane()

behindPlane(plane): boolean

Defined in: libs/scene/src/utility/bounding_volume.ts:24

Check if this bounding volume is behind a plane

Parameters

plane

Plane

The plane to check

Returns

boolean

true if the bounding volume behinds the plane, false otherwise


outsideFrustum()

outsideFrustum(frustum): boolean

Defined in: libs/scene/src/utility/bounding_volume.ts:30

Check if this bounding volume is outside a frustum

Parameters

frustum

Matrix4x4 | Frustum

The frustum to check

Returns

boolean

true if the bounding volume outsides the frustum, false otherwise


toAABB()

toAABB(): AABB

Defined in: libs/scene/src/utility/bounding_volume.ts:35

Gets the minimum AABB that contains the bounding volume

Returns

AABB

The mimimum AABB that contains the bounding volume

Released under the MIT License.