Class FrustumD
Describes a frustum by using six PlaneDs.
Inheritance
Inherited Members
Namespace: Fusee.Math.Core
Assembly: Fusee.Math.Core.dll
Syntax
public class FrustumD
Properties
Bottom
The bottom plane of the frustum.
Declaration
public PlaneD Bottom { get; }
Property Value
| Type | Description |
|---|---|
| PlaneD |
Far
The far plane of the frustum.
Declaration
public PlaneD Far { get; }
Property Value
| Type | Description |
|---|---|
| PlaneD |
Left
The left plane of the frustum.
Declaration
public PlaneD Left { get; }
Property Value
| Type | Description |
|---|---|
| PlaneD |
Near
The near plane of the frustum.
Declaration
public PlaneD Near { get; }
Property Value
| Type | Description |
|---|---|
| PlaneD |
Right
The right plane of the frustum.
Declaration
public PlaneD Right { get; }
Property Value
| Type | Description |
|---|---|
| PlaneD |
Top
The top plane of the frustum.
Declaration
public PlaneD Top { get; }
Property Value
| Type | Description |
|---|---|
| PlaneD |
Methods
CalculateFrustumCorners(double4x4)
Calculates the eight frustum corners from an input matrix. In most cases this matrix will be the View-Projection-Matrix.
Declaration
public static IEnumerable<double3> CalculateFrustumCorners(double4x4 mat)
Parameters
| Type | Name | Description |
|---|---|---|
| double4x4 | mat | The matrix from which to calculate the frustum corners. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<double3> |
CalculateFrustumPlanes(double4x4)
(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(double4x4 mat)
Parameters
| Type | Name | Description |
|---|---|---|
| double4x4 | mat | The matrix from which to extract the planes. |