Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: CircleD GetCircumscribedCircle(IList<PointD>)

  • Declared in: RT.Util.Geometry.CircleD

Declaration

public static CircleD GetCircumscribedCircle(
    IList<PointD> points
)

Summary

Returns the smallest circle that encloses all the given points. If 1 point is given, a circle of radius 0 is returned.

Parameters

IList<PointD>points The set of points to circumscribe.

Returns

The circumscribed circle.

Exceptions

  • System.InvalidOperationException
    The input collection contained zero points.

Remarks

  • Runs in expected O(n) time, randomized.