Geometry.ComputeBoundingBox Method

Language:

Computes a coordinate axis-oriented bounding box.

Definition

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

Parameters

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


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

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