Ray.Intersects Method (BoundingBox)
XNA Game Studio 4.0
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 )
Parameters
- box
- 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.