Class Frustum
- Namespace
- ValveResourceFormat.Renderer
- Assembly
- Renderer.dll
View frustum for culling objects outside the camera's visible area.
public class FrustumInheritance
Inherited Members
Methods
Clone()
Creates a deep copy of this frustum.
public Frustum Clone()Returns
- Frustum
-
A new frustum with the same planes.
CreateEmpty()
Creates an empty frustum with no planes.
public static Frustum CreateEmpty()Returns
- Frustum
-
A new empty frustum.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()Returns
- int
-
A hash code for the current object.
Intersects(in AABB)
Tests if an axis-aligned bounding box intersects this frustum.
public bool Intersects(in AABB box)Parameters
boxAABB-
The bounding box to test.
Returns
Intersects(in Vector3)
Tests if a point is inside this frustum.
public bool Intersects(in Vector3 point)Parameters
pointVector3-
The point to test.
Returns
Update(in Matrix4x4)
Updates the frustum planes from a view-projection matrix.
public void Update(in Matrix4x4 viewProjectionMatrix)Parameters
viewProjectionMatrixMatrix4x4-
Combined view and projection matrix.