Geometry.ComputeBoundingSphere Method
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
)
public static float ComputeBoundingSphere (
GraphicsStream pointsFvf,
int numPoints,
VertexFormats vertexFormat,
/** @attribute OutAttribute() */ /** @ref */ Vector3 center
)
JScript does not support passing value-type arguments by reference.
Parameters
- pointsFvf
A GraphicsStream object that contains the points around which the bounding sphere is constructed.
- numPoints
The number of vertices.
- vertexFormat
A VertexFormats object that specifies the format of the vertices that are passed in.
- center
A Vector3 structure that defines the coordinate center of the returned bounding sphere.
Return Value
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 .
Platforms
Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Version Information
.NET Compact Framework
Supported in: 2.0
See Also
Reference
Geometry Class
Geometry Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace