Ray.Intersects Method (BoundingSphere, Nullable<Single>)
Checks whether the current Ray intersects a BoundingSphere.
Syntax
'Declaration
Public Sub Intersects ( _
ref sphere As BoundingSphere, _
out result As Nullable(Of Single) _
)
public void Intersects (
ref BoundingSphere sphere,
out Nullable<float> result
)
public:
void Intersects(
ref BoundingSphere sphere,
out Nullable<float> result
)
Parameters
- sphere
Type: BoundingSphere
The BoundingSphere 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
Ray Structure
Ray Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone