Click or drag to resize

UtilSphereIntersectsFrustum(Plane, Vector3, Double) Method

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: 19.01.00
Syntax
C#
public static bool SphereIntersectsFrustum(
	Plane[] frustum,
	Vector3 sphereCenter,
	double sphereRadius
)

Parameters

frustum  Plane
Array of Plane representing the frustum.
sphereCenter  Vector3
Center of the sphere.
sphereRadius  Double
Radius of the sphere.

Return Value

Boolean
True if they intersect, false otherwise.
See Also