Circle.from_points

classmethod Circle.from_points(points)[source]

Construct a circle from a list of at least three points.

Parameters:
pointslist of compas.geometry.Point

A list of three points defining the circle.

Returns:
compas.geometry.Circle

The constructed circle.

Raises:
ValueError

If the list of points contains less than three points.

Notes

If more than three points are provided, the constructed cicrle is the one that best fits the points in the least squares sense.