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 3.8.0.1082)
  • C#
  • VB
  • F#
public Nullable<float> Intersects(
	Ray ray
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

ray
Type: Microsoft.Xna.Framework.Ray
The ray for testing.

Return Value

Type: Nullable<System.Single>
Distance of ray intersection or null if there is no intersection.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web