Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Ray.Intersects Method (BoundingBox)

Checks whether the Ray intersects a specified BoundingBox.

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

public Nullable<float> Intersects (
         BoundingBox box


Type: BoundingBox
The BoundingBox to check for intersection with the Ray.

Return Value

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

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone

Community Additions

© 2015 Microsoft