BoundingSphere.Intersects Method (Microsoft.Xna.Framework)

Gets whether or not a specified Ray intersects with this sphere.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public void Intersects(
	Ray ray, 
	out Nullable`1 result

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: Microsoft.Xna.Framework.Ray
The ray for testing.
Type: out System.Nullable`1<System.Single>
Distance of ray intersection or null if there is no intersection as an output parameter.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop