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

book_4_sparkGenerated
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. You can then call this method by passing a reference to a Vector3 point. The method will return a bool indicating whether the point is inside the frustum.

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
}