
Implement a 3D Frustum shape.
Kind: global class
Create the frustum.
| Param | Type | Description |
|---|---|---|
| p0 | Plane |
Frustum plane. |
| p1 | Plane |
Frustum plane. |
| p2 | Plane |
Frustum plane. |
| p3 | Plane |
Frustum plane. |
| p4 | Plane |
Frustum plane. |
| p5 | Plane |
Frustum plane. |
FrustumSet the Frustum values.
Kind: instance method of Frustum
Returns: Frustum - Self.
| Param | Type | Description |
|---|---|---|
| p0 | Plane |
Frustum plane. |
| p1 | Plane |
Frustum plane. |
| p2 | Plane |
Frustum plane. |
| p3 | Plane |
Frustum plane. |
| p4 | Plane |
Frustum plane. |
| p5 | Plane |
Frustum plane. |
FrustumCopy values from another frustum.
Kind: instance method of Frustum
Returns: Frustum - Self.
| Param | Type | Description |
|---|---|---|
| frustum | Frustum |
Frustum to copy. |
FrustumSet frustum from projection matrix.
Kind: instance method of Frustum
Returns: Frustum - Self.
| Param | Type | Description |
|---|---|---|
| m | Matrix |
Matrix to build frustum from. |
BooleanCheck if the frustum collides with a sphere.
Kind: instance method of Frustum
Returns: Boolean - True if point is in frustum, false otherwise.
| Param | Type | Description |
|---|---|---|
| sphere | Sphere |
Sphere to check. |
BooleanCheck if collide with a box.
Kind: instance method of Frustum
Returns: Boolean - True if collide, false otherwise.
| Param | Type | Description |
|---|---|---|
| box | Box |
Box to check. |
BooleanCheck if the frustum contains a point.
Kind: instance method of Frustum
Returns: Boolean - True if point is in frustum, false otherwise.
| Param | Type | Description |
|---|---|---|
| point | Vector3 |
Vector to check. |
FrustumClone this frustum.
Kind: instance method of Frustum
Returns: Frustum - Cloned frustum.