Table of Contents

Class Frustum

Namespace
ValveResourceFormat.Renderer
Assembly
Renderer.dll

View frustum for culling objects outside the camera's visible area.

public class Frustum

Inheritance

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

box AABB

The bounding box to test.

Returns

bool

true if the box is at least partially inside the frustum.

Intersects(in Vector3)

Tests if a point is inside this frustum.

public bool Intersects(in Vector3 point)

Parameters

point Vector3

The point to test.

Returns

bool

true if the point is inside the frustum.

Update(in Matrix4x4)

Updates the frustum planes from a view-projection matrix.

public void Update(in Matrix4x4 viewProjectionMatrix)

Parameters

viewProjectionMatrix Matrix4x4

Combined view and projection matrix.