Frustum
new Frustum()THREE equivalent: THREE.Frustum
Six-plane frustum used for camera frustum culling. Built from a camera’s combined projection-view matrix.
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
planes |
Plane[] |
Six clipping planes: left, right, bottom, top, near, far. |
Methods
Section titled “Methods”| Method | Description |
|---|---|
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. |