Click or drag to resize
DigitalRuneGeometryHelperComputeBoundingCapsule Method
Computes a tight-fitting capsule 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 ComputeBoundingCapsule(
	IList<Vector3F> points,
	out float radius,
	out float height,
	out Pose pose
)

Parameters

points
Type: System.Collections.GenericIListVector3F
The points.
radius
Type: SystemSingle
The radius of the capsule.
height
Type: SystemSingle
The height of the capsule.
pose
Type: DigitalRune.GeometryPose
The pose of the capsule.
Exceptions
ExceptionCondition
ArgumentNullExceptionpoints is .
ArgumentExceptionpoints is empty.
Remarks
The computed capsule is an approximation. Capsules work best for long objects.
See Also