bool IsInside( Vector3& point )
bool IsInside( BBox& box, bool partially )

robot_2Generated
code_blocksInput

Description

The IsInside method of the Frustum struct checks whether a given point, represented by a Vector3, is inside the frustum. This method is useful for determining if a point in 3D space is within the viewing volume defined by the frustum.

Usage

To use the IsInside method, you need to have an instance of the Frustum struct and a Vector3 point that you want to check. The method will return true if the point is inside the frustum, and false otherwise.

Example

// Create a frustum instance
Frustum frustum = new Frustum();

// Define a point in 3D space
Vector3 point = new Vector3(1.0f, 2.0f, 3.0f);

// Check if the point is inside the frustum
bool isInside = frustum.IsInside(ref point);

// Output the result
if (isInside)
{
    // The point is inside the frustum
}
else
{
    // The point is outside the frustum
}