Share via


Geometry.SphereBoundProbe(Vector3,Single,Vector3,Vector3) Method (Microsoft.DirectX.Direct3D)

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

Definition

Visual Basic Public Shared Function SphereBoundProbe( _
    ByVal center As Vector3, _
    ByVal radius As Single, _
    ByVal rayPosition As Vector3, _
    ByVal rayDirection As Vector3 _
) As Boolean
C# public static bool SphereBoundProbe(
    Vector3 center,
    float radius,
    Vector3 rayPosition,
    Vector3 rayDirection
);
C++ public:
static bool SphereBoundProbe(
    Vector3 center,
    float radius,
    Vector3 rayPosition,
    Vector3 rayDirection
);
JScript public static function SphereBoundProbe(
    center : Vector3,
    radius : float,
    rayPosition : Vector3,
    rayDirection : Vector3
) : boolean;

Parameters

center Microsoft.DirectX.Vector3
A Vector3 structure that specifies the center coordinate of the sphere.
radius System.Single
Radius of the sphere.
rayPosition Microsoft.DirectX.Vector3
A Vector3 structure that specifies the origin coordinate of the ray.
rayDirection Microsoft.DirectX.Vector3
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

System.Boolean
Value that is true if the ray intersects the volume of the sphere's bounding box, or false if it does not.

Remarks

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