?/TD>
Microsoft DirectX 9.0

D3DXComputeBoundingBox Function


Computes a coordinate-axis oriented bounding box.

Syntax

HRESULT D3DXComputeBoundingBox(      

    LPD3DXVECTOR3 pFirstPosition,     DWORD NumVertices,     DWORD dwStride,     D3DXVECTOR3 *pMin,     D3DXVECTOR3 *pMax );

Parameters

pFirstPosition
[in] Pointer to the first position.
NumVertices
[in] Number of vertices.
dwStride
[in] Count or number of bytes between vertices.
pMin
[out] Pointer to a D3DXVECTOR3 structure, describing the returned lower-left corner of the bounding box. See Remarks.
pMax
[out] Pointer to a D3DXVECTOR3 structure, describing the returned upper-right corner of the bounding box. See Remarks.

Return Value

If the function succeeds, the return value is D3D_OK.

If the function fails, the return value can be

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.


Function Information

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


© 2002 Microsoft Corporation. All rights reserved.