Constructor
new Frustum(p0, p1, p2, p3, p4, p5)
Methods
applyMatrix4(matrix) → {Frustum}
Apply a matrix4x4 to the frustum.
Name | Type | Description |
---|---|---|
matrix | Matrix4 | Matrix4 to apply to the frustum. |
- Type:
- Frustum
clone() → {Frustum}
Return a new Frustum with the same parameters as this one.
- Type:
- Frustum
copy(frustum) → {Frustum}
Copies the properties of the passed frustum into this one.
Name | Type | Description |
---|---|---|
frustum | Frustum | The frustum to copy |
- Type:
- Frustum
intersectsBox(box) → {boolean}
Return true if box intersects with this frustum.
Name | Type | Description |
---|---|---|
box | Box3 | Box3 to check for intersection. |
- Type:
- boolean
intersectsSphere(sphere) → {boolean}
Return true if sphere intersects with this frustum.
Name | Type | Description |
---|---|---|
sphere | Sphere | Sphere to check for intersection. |
- Type:
- boolean
set(p0, p1, p2, p3, p4, p5) → {Frustum}
Sets the frustum from the passed planes. No plane order is implied.
Name | Type | Description |
---|---|---|
p0 | Plane | (optional) defaults to a new Plane. |
p1 | Plane | (optional) defaults to a new Plane. |
p2 | Plane | (optional) defaults to a new Plane. |
p3 | Plane | (optional) defaults to a new Plane. |
p4 | Plane | (optional) defaults to a new Plane. |
p5 | Plane | (optional) defaults to a new Plane. |
- Type:
- Frustum
setFromMatrix(m) → {Frustum}
Sets the frustum planes from the matrix.
Name | Type | Description |
---|---|---|
m | Matrix4 | a Matrix4 used to set the planes |
- Type:
- Frustum