Struct Frustum
Represents a viewing frustum in 3D space, defined by its corners in both the near and far planes.
Inherited Members
Namespace: Genesis.Graphics
Assembly: Genesis.dll
Syntax
public struct Frustum
Fields
bottomLeftFar
Gets or sets the bottom-left corner of the far plane of the frustum.
Declaration
public vec3 bottomLeftFar
Field Value
Type | Description |
---|---|
vec3 |
bottomLeftNear
Gets or sets the bottom-left corner of the near plane of the frustum.
Declaration
public vec3 bottomLeftNear
Field Value
Type | Description |
---|---|
vec3 |
bottomRightFar
Gets or sets the bottom-right corner of the far plane of the frustum.
Declaration
public vec3 bottomRightFar
Field Value
Type | Description |
---|---|
vec3 |
bottomRightNear
Gets or sets the bottom-right corner of the near plane of the frustum.
Declaration
public vec3 bottomRightNear
Field Value
Type | Description |
---|---|
vec3 |
center
Gets or sets the center point of the frustum.
Declaration
public vec3 center
Field Value
Type | Description |
---|---|
vec3 |
centerFar
Gets or sets the center point of the far plane of the frustum.
Declaration
public vec3 centerFar
Field Value
Type | Description |
---|---|
vec3 |
centerNear
Gets or sets the center point of the near plane of the frustum.
Declaration
public vec3 centerNear
Field Value
Type | Description |
---|---|
vec3 |
topLeftFar
Gets or sets the top-left corner of the far plane of the frustum.
Declaration
public vec3 topLeftFar
Field Value
Type | Description |
---|---|
vec3 |
topLeftNear
Gets or sets the top-left corner of the near plane of the frustum.
Declaration
public vec3 topLeftNear
Field Value
Type | Description |
---|---|
vec3 |
topRightFar
Gets or sets the top-right corner of the far plane of the frustum.
Declaration
public vec3 topRightFar
Field Value
Type | Description |
---|---|
vec3 |
topRightNear
Gets or sets the top-right corner of the near plane of the frustum.
Declaration
public vec3 topRightNear
Field Value
Type | Description |
---|---|
vec3 |
Methods
ToList(mat4)
Transforms the frustum corners using the specified transformation matrix and returns them as a list of GlmSharp.vec3 vectors.
Declaration
public List<vec3> ToList(mat4 matrix)
Parameters
Type | Name | Description |
---|---|---|
mat4 | matrix | The transformation matrix to apply to the frustum corners. |
Returns
Type | Description |
---|---|
List<vec3> | A List<T> containing the transformed corners of the frustum. |