Show / Hide Table of Contents

Class FrustumF

Describes a frustum by using six PlaneFs.

Inheritance
System.Object
FrustumF
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Math.Core
Assembly: Fusee.Math.Core.dll
Syntax
public class FrustumF

Properties

Bottom

The bottom plane of the frustum.

Declaration
public PlaneF Bottom { get; }
Property Value
Type Description
PlaneF

Far

The far plane of the frustum.

Declaration
public PlaneF Far { get; }
Property Value
Type Description
PlaneF

Left

The left plane of the frustum.

Declaration
public PlaneF Left { get; }
Property Value
Type Description
PlaneF

Near

The near plane of the frustum.

Declaration
public PlaneF Near { get; }
Property Value
Type Description
PlaneF

Right

The right plane of the frustum.

Declaration
public PlaneF Right { get; }
Property Value
Type Description
PlaneF

Top

The top plane of the frustum.

Declaration
public PlaneF Top { get; }
Property Value
Type Description
PlaneF

Methods

CalculateFrustumCorners(float4x4)

Calculates the eight frustum corners from an input matrix. In most cases this matrix will be the View-Projection-Matrix.

Declaration
public static IEnumerable<float3> CalculateFrustumCorners(float4x4 mat)
Parameters
Type Name Description
float4x4 mat

The matrix from which to calculate the frustum corners.

Returns
Type Description
System.Collections.Generic.IEnumerable<float3>

CalculateFrustumPlanes(float4x4)

(Re)Calculates the frustum planes. If feeded with a projection matrix, the frustum planes are in View Space. If feeded with a view projection matrix, the frustum planes are in World Space. If feeded with a model view projection matrix, the frustum planes are in Model Space. See: http://www8.cs.umu.se/kurser/5DV051/HT12/lab/plane_extraction.pdf

Declaration
public void CalculateFrustumPlanes(float4x4 mat)
Parameters
Type Name Description
float4x4 mat

The matrix from which to extract the planes.

Generated by DocFX
GitHub Repo
Back to top