Frustumclass

Represents a frustum.

objectFrustum
Namespace
Sandbox
Assembly
Sandbox.System
Declaration
public sealed struct Sandbox.Frustum

Constructors1

Showing 1 constructors

Methods7

Showing 7 methods

public static Sandbox.Frustum FromCorners(Ray tl, Ray tr, Ray br, Ray bl, float near, float far)PUBLICSTATIC

Create a frustum from four corner rays. These rays commonly come from SceneCamera.GetRay.

ParameterTypeDescription
tlRay
trRay
brRay
blRay
nearfloat
farfloat
Returns:Frustum

public BBox GetBBox()PUBLIC

Returns the AABB of this frustum.

Returns:BBox

public System.Nullable`1<Vector3> GetCorner(int i)PUBLIC

Returns the corner point of one of the 8 corners. This may return null if i is > 7 or the frustum is invalid.

ParameterTypeDescription
iint
Returns:Nullable<Vector3>

On this page