Share via


Geometry.ComputeBoundingBox Method

Computes a coordinate axis-oriented bounding box.

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

Syntax

'Declaration
Public Shared Sub ComputeBoundingBox ( _
    pointsFvf As GraphicsStream, _
    numPoints As Integer, _
    vertexFormat As VertexFormats, _
    <OutAttribute> ByRef min As Vector3, _
    <OutAttribute> ByRef max As Vector3 _
)
'Usage
Dim pointsFvf As GraphicsStream
Dim numPoints As Integer
Dim vertexFormat As VertexFormats
Dim min As Vector3
Dim max As Vector3

Geometry.ComputeBoundingBox(pointsFvf, numPoints, vertexFormat, min, max)
public static void ComputeBoundingBox (
    GraphicsStream pointsFvf,
    int numPoints,
    VertexFormats vertexFormat,
    out Vector3 min,
    out Vector3 max
)
public:
static void ComputeBoundingBox (
    GraphicsStream^ pointsFvf, 
    int numPoints, 
    VertexFormats vertexFormat, 
    [OutAttribute] Vector3% min, 
    [OutAttribute] Vector3% max
)
public static void ComputeBoundingBox (
    GraphicsStream pointsFvf, 
    int numPoints, 
    VertexFormats vertexFormat, 
    /** @attribute OutAttribute() */ /** @ref */ Vector3 min, 
    /** @attribute OutAttribute() */ /** @ref */ Vector3 max
)
JScript does not support passing value-type arguments by reference.

Parameters

  • pointsFvf
    A GraphicsStream object that contains the points around which the bounding box is constructed.
  • numPoints
    The number of vertices.
  • vertexFormat
    A VertexFormats object that specifies the format of the vertices that are passed in.
  • min
    A Vector3 structure that describes the returned lower-left corner of the bounding box.
  • max
    A Vector3 structure that describes the returned upper-right corner of the bounding box.

Exceptions

Exception type Condition

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

Remarks

Array that contains the points around which the bounding box is constructed.

.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