Click or drag to resize
DigitalRuneGeometryHelperComputeBoundingSphere Method
Computes the minimum sphere 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 ComputeBoundingSphere(
	IEnumerable<Vector3F> points,
	out float radius,
	out Vector3F center
)

Parameters

points
Type: System.Collections.GenericIEnumerableVector3F
The points.
radius
Type: SystemSingle
The radius of the sphere.
center
Type: DigitalRune.Mathematics.AlgebraVector3F
The center of the sphere.
Exceptions
ExceptionCondition
ArgumentNullExceptionpoints is .
ArgumentExceptionpoints is empty.
Remarks
The computed sphere is minimal and not an approximation.
See Also