| GeometryHelperComputeBoundingBox Method |
Computes the minimum box that contains the given points.
Namespace: DigitalRune.GeometryAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public static void ComputeBoundingBox(
IList<Vector3F> points,
out Vector3F extent,
out Pose pose
)
Public Shared Sub ComputeBoundingBox (
points As IList(Of Vector3F),
<OutAttribute> ByRef extent As Vector3F,
<OutAttribute> ByRef pose As Pose
)
public:
static void ComputeBoundingBox(
IList<Vector3F>^ points,
[OutAttribute] Vector3F% extent,
[OutAttribute] Pose% pose
)
static member ComputeBoundingBox :
points : IList<Vector3F> *
extent : Vector3F byref *
pose : Pose byref -> unit
Parameters
- points
- Type: System.Collections.GenericIListVector3F
The points. - extent
- Type: DigitalRune.Mathematics.AlgebraVector3F
The box extent (the size in x, y and z). - pose
- Type: DigitalRune.GeometryPose
The pose of the box.
Exceptions Remarks
If a box with the dimensions given in extent is positioned with
pose all given points will be inside the box. The box is an
approximation and not necessarily optimal.
See Also