Frustum

new Frustum()
THREE: THREE.Frustum

Six-plane frustum used for camera frustum culling. Built from a camera's combined projection-view matrix.

Properties

NameTypeDescription
planes

Plane[]

Six clipping planes: left, right, bottom, top, near, far.

Methods

MethodDescription
setFromProjectionMatrix(m: Matrix4): this

Extracts six planes from a combined projection-view matrix using the Gribb-Hartmann method.

intersectsBox(box: Box3): boolean

Returns true if any part of the box is inside the frustum.

intersectsSphere(sphere: Sphere): boolean

Returns true if any part of the sphere is inside the frustum.

containsPoint(point: Vector3): boolean

Returns true if the point is inside all six planes.

clone(): Frustum

Returns a new Frustum with copied planes.