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 can be used for various calculations, such as visibility determination and collision detection.
Usage
To access the TopPlane
of a Frustum
instance, simply use the field directly. 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 further calculations or checks
Vector3 normal = topPlane.Normal;
float distance = topPlane.Distance;