circle_from_points

compas.geometry.circle_from_points(a, b, c)[source]

Construct a circle from three points.

Parameters
  • a ([float, float, float] | Point) – XYZ coordinates.

  • b ([float, float, float] | Point) – XYZ coordinates.

  • c ([float, float, float] | Point) – XYZ coordinates.

Returns

  • [float, float, float] – Center of the circle.

  • float – Radius of the circle.

  • [float, float, float] – Normal of the plane containing the circle.

Notes

For more information, see 1.

References

1

Wikipedia. Circumscribed circle. Available at: https://en.wikipedia.org/wiki/Circumscribed_circle.

Examples

>>>