Constructor
new L3D.Frustum(matrix)
Create a new Frustum.
Parameters
matrix |
* | Can be undefined, a Matrix, or a Frustum |
Properties
bottom
Float32Array
far
Float32Array
left
Float32Array
near
Float32Array
right
Float32Array
top
Float32Array
Methods
setMatrix(vp)
Set the frustum from a projection matrix.
Parameters
vp |
Matrix4 | Projection matrix to set the frustum from. |
testBoundingBox(box) → number
Test a BoundingBox against the frustum.
Parameters
box |
BoundingBox |
Returns
- number
Clip.Outside of the box is completely outside the frustum; Clip.Inside if the box is completely inside the frustum; Clip.Overlap if the box overlaps the frustum.
testBoundingSphere(sphere) → number
Test a BoundingSphere against the frustum.
Parameters
sphere |
BoundingSphere |
Returns
- number
Clip.Outside of the sphere is completely outside the frustum; Clip.Inside if the sphere is completely inside the frustum; Clip.Overlap if the sphere overlaps the frustum.