Represents a viewing frustum.
More...
#include <ViewingFrustum.hpp>
Represents a viewing frustum.
◆ ViewingFrustum()
| Engine3DRadSpace.Math::ViewingFrustum::ViewingFrustum |
( |
const Matrix4x4 & | view, |
|
|
const Matrix4x4 & | projection ) |
Constructs an viewing frustum from the given view and projection matrices.
- Parameters
-
| view | View matrix. |
| projection | Projection matrix. |
◆ Bottom()
Returns the plane representing the bottom of the frustum.
- Returns
- The bottom plane of the frustum.
◆ Contains() [1/5]
| bool Engine3DRadSpace.Math::ViewingFrustum::Contains |
( |
const BoundingBox & | box | ) |
|
Does this frustum contain the given bounding box?
- Parameters
-
| box | The bounding box to test. |
- Returns
- True if the frustum contains the bounding box, false otherwise.
◆ Contains() [2/5]
Does this frustum contain the given bounding plane?
- Parameters
-
| plane | The bounding plane to test. |
- Returns
- True if the frustum contains the bounding plane, false otherwise.
◆ Contains() [3/5]
Does this frustum contain the given bounding sphere?
- Parameters
-
| sphere | The bounding sphere to test. |
- Returns
- True if the frustum contains the bounding sphere, false otherwise.
◆ Contains() [4/5]
| bool Engine3DRadSpace.Math::ViewingFrustum::Contains |
( |
const Vector3 & | point | ) |
|
Does this frustum contain the given point?
- Parameters
-
- Returns
- True if the frustum contains the point, false otherwise.
◆ Contains() [5/5]
Does this frustum contain the given frustum?
- Parameters
-
| frustum | The frustum to test. |
- Returns
- True if the frustum contains the other frustum, false otherwise.
◆ Corners()
| std::array< Vector3, 8 > Engine3DRadSpace.Math::ViewingFrustum::Corners |
( |
| ) |
|
Returns the corners of the frustum in world space.
- Returns
- An array containing the eight corners of the frustum.
◆ Far()
Returns the plane representing the far side of the frustum.
- Returns
- The far plane of the frustum.
◆ Intersects()
| float Engine3DRadSpace.Math::ViewingFrustum::Intersects |
( |
const Ray & | ray | ) |
|
Does this frustum intersect with the given ray?
- Parameters
-
- Returns
- The distance at which the ray intersects the frustum, or a negative value if there is no intersection.
◆ Left()
Returns the plane representing the left side of the frustum.
- Returns
- The left plane of the frustum.
◆ Near()
Returns the plane representing the near side of the frustum.
- Returns
- The near plane of the frustum.
◆ Right()
Returns the plane representing the right side of the frustum.
- Returns
- The right plane of the frustum.
◆ Top()
Returns the plane representing the top of the frustum.
- Returns
- The top plane of the frustum.
The documentation for this class was generated from the following files: