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. |
Frustum
Set 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. |
Frustum
Copy values from another frustum.
Kind: instance method of Frustum
Returns: Frustum
- Self.
Param | Type | Description |
---|---|---|
frustum | Frustum |
Frustum to copy. |
Frustum
Set frustum from projection matrix.
Kind: instance method of Frustum
Returns: Frustum
- Self.
Param | Type | Description |
---|---|---|
m | Matrix |
Matrix to build frustum from. |
Boolean
Check 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. |
Boolean
Check 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. |
Boolean
Check 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. |
Frustum
Clone this frustum.
Kind: instance method of Frustum
Returns: Frustum
- Cloned frustum.