Click or drag to resize
DigitalRuneGeometryHelperComputeBoundingBox Method
Computes the minimum box that contains the given points.

Namespace: DigitalRune.Geometry
Assembly: 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
)

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
ExceptionCondition
ArgumentNullExceptionpoints is .
ArgumentExceptionpoints is empty.
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