BoundingSphere.Intersects Method (Ray, Nullable<Single>)
Checks whether the current BoundingSphere intersects a Ray.
Syntax
'Declaration
Public Sub Intersects ( _
ref ray As Ray, _
out result As Nullable(Of Single) _
)
public void Intersects (
ref Ray ray,
out Nullable<float> result
)
public:
void Intersects(
ref Ray ray,
out Nullable<float> result
)
Parameters
- ray
Type: Ray
The Ray to check for intersection with. - result
Type: Nullable<Single>
[OutAttribute] 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