Metodo Geometry.ComputeBoundingSphere
Aggiornamento: novembre 2007
Calcola una sfera di delimitazione per un reticolo.
Spazio dei nomi: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)
Sintassi
'Dichiarazione
Public Shared Function ComputeBoundingSphere ( _
pointsFvf As GraphicsStream, _
numPoints As Integer, _
vertexFormat As VertexFormats, _
<OutAttribute> ByRef center As Vector3 _
) As Single
'Utilizzo
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 function ComputeBoundingSphere(
pointsFvf : GraphicsStream,
numPoints : int,
vertexFormat : VertexFormats,
center : Vector3
) : float
Parametri
pointsFvf
Tipo: Microsoft.WindowsMobile.DirectX.GraphicsStreamOggetto GraphicsStream che contiene i punti intorno ai quali viene costruita la sfera di delimitazione.
numPoints
Tipo: System.Int32Numero di vertici.
vertexFormat
Tipo: Microsoft.WindowsMobile.DirectX.Direct3D.VertexFormatsOggetto VertexFormats che specifica il formato dei vertici passati.
center
Tipo: Microsoft.WindowsMobile.DirectX.Vector3%Struttura Vector3 che definisce il centro della coordinata della sfera di delimitazione restituita.
Valore restituito
Tipo: System.Single
Raggio della sfera di delimitazione restituita.
Autorizzazioni
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.
Piattaforme
Windows CE, Windows Mobile per Smartphone, Windows Mobile per Pocket PC
.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.
Informazioni sulla versione
.NET Compact Framework
Supportato in: 3.5, 2.0