D3DX8.ComputeBoundingSphere
Computes a bounding sphere.
object.ComputeBoundingSphere( _
PointsFVF As Any, _
NumVertices As Long, _
FVF As Long, _
Center As D3DVECTOR, _
RadiusArray As Single)
Parts
- object
- Object expression that resolves to a D3DX8 object.
- PointsFVF
- Buffer containing the vertex data around which to calculate the bounding sphere.
- NumVertices
- Number of vertices.
- FVF
- Combination of flexible vertex format flags that describes the vertex format.
- Center
- D3DVECTOR type, defining the coordinate center of the returned bounding sphere.
- RadiusArray
- Radius of the returned bounding sphere.
Error Codes
If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.