Share via


Geometry.SphereBoundProbe Method

Determines whether a ray intersects the volume of a sphere's bounding box.

Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)

Syntax

'Declaration
Public Shared Function SphereBoundProbe ( _
    center As Vector3, _
    radius As Single, _
    rayPosition As Vector3, _
    rayDirection As Vector3 _
) As Boolean
'Usage
Dim center As Vector3
Dim radius As Single
Dim rayPosition As Vector3
Dim rayDirection As Vector3
Dim returnValue As Boolean

returnValue = Geometry.SphereBoundProbe(center, radius, rayPosition, rayDirection)
public static bool SphereBoundProbe (
    Vector3 center,
    float radius,
    Vector3 rayPosition,
    Vector3 rayDirection
)
public:
static bool SphereBoundProbe (
    Vector3 center, 
    float radius, 
    Vector3 rayPosition, 
    Vector3 rayDirection
)
public static boolean SphereBoundProbe (
    Vector3 center, 
    float radius, 
    Vector3 rayPosition, 
    Vector3 rayDirection
)
public static function SphereBoundProbe (
    center : Vector3, 
    radius : float, 
    rayPosition : Vector3, 
    rayDirection : Vector3
) : boolean

Parameters

  • center
    A Vector3 structure that specifies the center coordinate of the sphere.
  • radius
    The radius of the sphere.
  • rayPosition
    A Vector3 structure that specifies the origin coordinate of the ray.
  • rayDirection
    A Vector3 structure that specifies the direction of the ray. This vector should not be (0,0,0), but does not need to be normalized.

Return Value

true if the ray intersects the volume of the sphere's bounding box; otherwise, false.

Remarks

The SphereBoundProbe method determines whether the ray intersects the volume of the sphere, not just its surface.

.NET Framework Security

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

Geometry Class
Geometry Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace