Share via


Geometry.ComputeBoundingBox(GraphicsStream,Int32,VertexFormats,Vector3,Vector3) Method (Microsoft.DirectX.Direct3D)

Computes a coordinate axis-oriented bounding box.

Definition

Visual Basic Public Shared Sub ComputeBoundingBox( _
    ByVal pointsFvf As GraphicsStream, _
    ByVal numVertices As Integer, _
    ByVal vertexFormat As VertexFormats, _
    ByRef min As Vector3, _
    ByRef max As Vector3 _
)
C# public static void ComputeBoundingBox(
    GraphicsStream pointsFvf,
    int numVertices,
    VertexFormats vertexFormat,
    out Vector3 min,
    out Vector3 max
);
C++ public:
static void ComputeBoundingBox(
    GraphicsStreampointsFvf,
    int numVertices,
    VertexFormats vertexFormat,
    [Out] Vector3min,
    [Out] Vector3max
);
JScript public static function ComputeBoundingBox(
    pointsFvf : GraphicsStream,
    numVertices : int,
    vertexFormat : VertexFormats,
    min : Vector3,
    max : Vector3
);

Parameters

pointsFvf Microsoft.DirectX.GraphicsStream
A GraphicsStream object that contains the points around which the bounding box is constructed.
numVertices System.Int32
Number of vertices.
vertexFormat Microsoft.DirectX.Direct3D.VertexFormats
A VertexFormats object that specifies the format of the vertices that are passed in.
min Microsoft.DirectX.Vector3
A Vector3 structure that describes the returned lower-left corner of the bounding box.
max Microsoft.DirectX.Vector3
A Vector3 structure that describes the returned upper-right corner of the bounding box.

Remarks

Exceptions

InvalidCallException

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