?/TD>
Microsoft DirectX 9.0

D3DXSphereBoundProbe Function


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

Syntax

BOOL D3DXSphereBoundProbe(      

    CONST D3DXVECTOR3* pCenter,     FLOAT Radius,     CONST D3DXVECTOR3* pRayPosition,     CONST D3DXVECTOR3* pRayDirection );

Parameters

pCenter
[in] Pointer to a D3DXVECTOR3 structure, specifying the center coordinate of the sphere.
Radius
[in] Radius of the sphere.
pRayPosition
[in] Pointer to a D3DXVECTOR3 structure, specifying the origin coordinate of the ray.
pRayDirection
[in] Pointer to a D3DXVECTOR3 structure, specifying the direction of the ray. This vector should not be (0,0,0) but does not need to be normalized.

Return Value

Returns TRUE if the ray intersects the volume of the sphere's bounding box. Otherwise, returns FALSE.



Remarks

D3DXSphereBoundProbe determines if the ray intersects the volume of the sphere's bounding box, not just the surface of the sphere.

Function Information

Headerd3dx9mesh.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98


© 2002 Microsoft Corporation. All rights reserved.