Ray.Intersects Method (BoundingFrustum)

Checks whether the Ray intersects a specified BoundingFrustum.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public Nullable<float> Intersects (
         BoundingFrustum frustum


The BoundingFrustum to check for intersection with the Ray.

Return Value

Distance at which the ray intersects the BoundingFrustum or null if there is no intersection.

Exception typeCondition
ArgumentNullException frustum is null.

Xbox 360, Windows XP SP2, Windows Vista, Zune