Frustum
Description
- Extended by
-
DefaultFrustum
HullFrustum sealed
Represents a frustum in terrain-space.
Each plane of a frustum establishes two half-spaces: the inside and the outside. The intersection of all inside half-spaces defines the interior of the frustum. Usually, the frustum is a convex polyhedron with a finite volume. However, a frustum may also be open and thus have an infinite volume.
Public / Methods
TestCuboid
Tests if the given cuboid lies inside the frustum.
The implementation tests the corner vertices of the cuboid against each frustum plane individually. This approach may produce false intersections when a cuboid is outside the frustum but near the regions where the frustum planes intersect (i.e. near the extruded corners of the frustum). Assuming that cuboid sizes are typically much smaller than frustum sizes, this can be tolerated.