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