Click or drag to resize

CircleTrySmallestEnclosingCircle Method

Attempt to create the smallest circle enclosing a set of planar points.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 8.4
Syntax
public static bool TrySmallestEnclosingCircle(
	IEnumerable<Point2d> points,
	double tolerance,
	out Circle circle,
	out int[] indicesOnCircle
)

Parameters

points
Type: System.Collections.GenericIEnumerablePoint2d
The points to enclose.
tolerance
Type: SystemDouble
The tolerance to use
circle
Type: Rhino.GeometryCircle
The resulting circle on success.
indicesOnCircle
Type: SystemInt32
If possible, indices of two or three points that define the circle

Return Value

Type: Boolean
true on success, false on failure.
See Also