Partager via


Geometry.SphereBoundProbe Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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
)
static member SphereBoundProbe : 
        center:Vector3 * 
        radius:float32 * 
        rayPosition:Vector3 * 
        rayDirection:Vector3 -> bool 

Parameters

Return Value

Type: System.Boolean
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, and not just its surface.

.NET Framework Security

Platforms

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

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

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

Geometry Class

Geometry Members

Microsoft.WindowsMobile.DirectX.Direct3D Namespace