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)

Syntax

public Nullable<float> Intersects (
         BoundingBox box
)

Parameters

Return Value

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

See Also

Reference

Ray Structure
Ray Members
Microsoft.Xna.Framework Namespace

Programming Guide

How to: Detect Whether a User Clicked a 3D Object

Platforms

Xbox 360, Windows XP SP2, Windows Vista