Click or drag to resize
DigitalRuneGeometryHelperComputeCircumscribedSphere Method (Vector3F, Vector3F, Vector3F, Single, Vector3F)
Computes a sphere where all given points touch the surface.

Namespace: DigitalRune.Geometry
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public static void ComputeCircumscribedSphere(
	Vector3F point0,
	Vector3F point1,
	Vector3F point2,
	out float radius,
	out Vector3F center
)

Parameters

point0
Type: DigitalRune.Mathematics.AlgebraVector3F
The first point.
point1
Type: DigitalRune.Mathematics.AlgebraVector3F
The second point.
point2
Type: DigitalRune.Mathematics.AlgebraVector3F
The third point.
radius
Type: SystemSingle
The sphere radius.
center
Type: DigitalRune.Mathematics.AlgebraVector3F
The sphere center.
Remarks

A circumscribed sphere is not necessarily the minimal sphere that contains the given points. There might be a smaller sphere where the surface touches only 2 points and the third points is inside the sphere. To get a minimal sphere call ComputeBoundingSphere(IEnumerableVector3F, Single, Vector3F).

The given points must form a valid triangle with an area greater than 0; otherwise, the result is not defined (radius is NaN).

See Also