Partager via


Geometry.ComputeBoundingSphere Method

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

Computes a bounding sphere for a mesh.

Namespace:  Microsoft.WindowsMobile.DirectX.Direct3D
Assembly:  Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)

Syntax

'Declaration
Public Shared Function ComputeBoundingSphere ( _
    pointsFvf As GraphicsStream, _
    numPoints As Integer, _
    vertexFormat As VertexFormats, _
    <OutAttribute> ByRef center As Vector3 _
) As Single
'Usage
Dim pointsFvf As GraphicsStream
Dim numPoints As Integer
Dim vertexFormat As VertexFormats
Dim center As Vector3
Dim returnValue As Single

returnValue = Geometry.ComputeBoundingSphere(pointsFvf, _
    numPoints, vertexFormat, center)
public static float ComputeBoundingSphere(
    GraphicsStream pointsFvf,
    int numPoints,
    VertexFormats vertexFormat,
    out Vector3 center
)
public:
static float ComputeBoundingSphere(
    GraphicsStream^ pointsFvf, 
    int numPoints, 
    VertexFormats vertexFormat, 
    [OutAttribute] Vector3% center
)
static member ComputeBoundingSphere : 
        pointsFvf:GraphicsStream * 
        numPoints:int * 
        vertexFormat:VertexFormats * 
        center:Vector3 byref -> float32 

Parameters

Return Value

Type: System.Single
The radius of the returned bounding sphere.

.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