Description
The NearPlane
field of the Frustum
struct represents the near plane of the frustum, which is oriented inwards. This plane is crucial in defining the closest boundary of the frustum, beyond which objects are considered to be outside the viewable area.
Usage
To access the NearPlane
field, you need to have an instance of the Frustum
struct. This field is public and non-static, meaning it is accessed through an instance of Frustum
. The NearPlane
is of type Plane
, which provides properties and methods to work with geometric planes.
Example
// Example of accessing the NearPlane field
Frustum frustum = new Frustum();
Plane nearPlane = frustum.NearPlane;
// Use the nearPlane for further calculations or checks
Vector3 point = new Vector3(0, 0, 0);
bool isPointInFront = nearPlane.IsInFront(point);