BoundingSphere.Intersects Method (Ray)
Checks whether the current BoundingSphere intersects with a specified Ray.
Syntax
'Declaration
Public Function Intersects ( _
ray As Ray _
) As Nullable(Of Single)
public Nullable<float> Intersects (
Ray ray
)
public:
Nullable<float> Intersects(
Ray ray
)
Parameters
- ray
Type: Ray
The Ray to check for intersection with the current BoundingSphere.
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
BoundingSphere Structure
BoundingSphere Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone