Click or drag to resize

UtilSphereIntersectsFrustum Method (Plane, Vector3, Double)

Check to see if the supplied frustum defined by a set of planes intersects with the supplied sphere centered at sphereCenter with a given sphereRadius.

The frustum planes are usually Near, Far, Left, Right, Top, Bottom but Far can be ommitted in certain cases (selection to infinity).

Namespace:  Demo3D.Common
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static bool SphereIntersectsFrustum(
	Plane[] frustum,
	Vector3 sphereCenter,
	double sphereRadius
)

Parameters

frustum
Type: Microsoft.DirectXPlane
Array of Plane representing the frustum.
sphereCenter
Type: Microsoft.DirectXVector3
Center of the sphere.
sphereRadius
Type: SystemDouble
Radius of the sphere.

Return Value

Type: Boolean
True if they intersect, false otherwise.
See Also