Description
The TopPlane
field represents the top plane of the frustum, oriented inwards. It is a part of the Frustum
structure, which is used to define a 3D space that is typically used in rendering and visibility calculations. The TopPlane
is one of the six planes that make up the frustum, each defining a boundary of the viewable area.
Usage
To access the TopPlane
of a Frustum
instance, simply reference it directly from the instance. This field is public and non-static, meaning it is accessed through an instance of the Frustum
struct.
Example
// Example of accessing the TopPlane of a Frustum
Frustum frustum = new Frustum();
Plane topPlane = frustum.TopPlane;
// Use the topPlane for calculations or rendering logic
Vector3 normal = topPlane.Normal;
float distance = topPlane.Distance;