| GeometryHelperComputeBoundingSphere Method |
Computes the minimum sphere 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 ComputeBoundingSphere(
IEnumerable<Vector3F> points,
out float radius,
out Vector3F center
)
Public Shared Sub ComputeBoundingSphere (
points As IEnumerable(Of Vector3F),
<OutAttribute> ByRef radius As Single,
<OutAttribute> ByRef center As Vector3F
)
public:
static void ComputeBoundingSphere(
IEnumerable<Vector3F>^ points,
[OutAttribute] float% radius,
[OutAttribute] Vector3F% center
)
static member ComputeBoundingSphere :
points : IEnumerable<Vector3F> *
radius : float32 byref *
center : Vector3F byref -> unit
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 Remarks
The computed sphere is minimal and not an approximation.
See Also