Ray.Intersects Method (BoundingSphere)
Checks whether the Ray intersects a specified BoundingSphere.
Syntax
'Declaration
Public Function Intersects ( _
sphere As BoundingSphere _
) As Nullable(Of Single)
public Nullable<float> Intersects (
BoundingSphere sphere
)
public:
Nullable<float> Intersects(
BoundingSphere sphere
)
Parameters
- sphere
Type: BoundingSphere
The BoundingSphere to check for intersection with the Ray.
Return Value
Type: Nullable<Single>
Distance at which the ray intersects the BoundingSphere or null if there is no intersection.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Ray Structure
Ray Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone