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
- pointsFvf
Type: Microsoft.WindowsMobile.DirectX.GraphicsStream
A GraphicsStream object that contains the points around which the bounding sphere is constructed.
- numPoints
Type: System.Int32
The number of vertices.
- vertexFormat
Type: Microsoft.WindowsMobile.DirectX.Direct3D.VertexFormats
A VertexFormats object that specifies the format of the vertices that are passed in.
- center
Type: Microsoft.WindowsMobile.DirectX.Vector3%
A Vector3 structure that defines the coordinate center of the returned bounding sphere.
Return Value
Type: System.Single
The radius of the returned bounding sphere.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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