BoundingSphere.Intersects Method (Ray)

Checks whether the current BoundingSphere intersects with a specified Ray.

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

Syntax

public Nullable<float> Intersects (
         Ray ray
)

Parameters

Return Value

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

See Also

Reference

BoundingSphere Structure
BoundingSphere Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista