[name]
Frustums are used to determine what is inside the camera's field of view. They help speed up the rendering process.
Constructor
[name]([page:Plane p0], [page:Plane p1], [page:Plane p2], [page:Plane p3], [page:Plane p4], [page:Plane p5])
p0 -- [page:Plane]
p1 -- [page:Plane]
p2 -- [page:Plane]
p3 -- [page:Plane]
p4 -- [page:Plane]
p5 -- [page:Plane]
Creates a frustum from the designated planes.
Properties
.[page:Array planes]
Array of 6 [page:Plane planes].
Methods
.setFromMatrix( [page:Matrix4 matrix] )
.intersectsObject( [page:Object3D object] ) [page:Boolean]
Checks whether the object is inside the Frustum.
.clone() [page:Frustum]
Return a copy of this Frustum
.set([page:Plane p0], [page:Plane p1], [page:Plane p2], [page:Plane p3], [page:Plane p4], [page:Plane p5]) [page:Boolean]
p0 -- [page:Plane]
p1 -- [page:Plane]
p2 -- [page:Plane]
p3 -- [page:Plane]
p4 -- [page:Plane]
p5 -- [page:Plane]
Sets the current frustum from the passed planes. No plane order is implicitely implied.
.copy([page:Frustum frustum]) [page:Frustum this]
frustum -- The frustum to copy
Copies the values of the passed frustum.
.containsPoint([page:Vector3 point]) [page:Boolean]
point -- [page:Vector3] to test
Checks to see if the frustum contains the point.
.intersectsSphere([page:Sphere sphere]) [page:Boolean]
sphere -- [page:Sphere]
Check to see if the sphere intersects with the frustum.
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]