Microsoft DirectX 9.0 SDK Update (October 2004)

Geometry.ComputeBoundingBox Method

Language:

Note: This documentation is preliminary and is subject to change.

Computes a coordinate axis-oriented bounding box.

Definition

Visual Basic .NET Public Shared Sub ComputeBoundingBox( _
    ByVal pointsFvf As Array, _
    ByVal vertexFormat As VertexFormats, _
    ByRef min As Vector3, _
    ByRef max As Vector3 _
)
C# public static void ComputeBoundingBox(
    Array pointsFvf,
    VertexFormats vertexFormat,
    out Vector3 min,
    out Vector3 max
);
Managed C++ public: static void ComputeBoundingBox(
    Array *pointsFvf,
    VertexFormats vertexFormat,
    Vector3 *min,
    Vector3 *max
);
JScript .NET public static function ComputeBoundingBox(
    pointsFvf : Array,
    vertexFormat : VertexFormats,
    min : Vector3,
    max : Vector3
);

Parameters

pointsFvf System.Array. Array that contains the points around which the bounding box is constructed.
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.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center