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], [float, float, float]), float – Center, normal and radius of the circle respectively.

Notes

For more information, see 1.

References

1

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

Examples

>>>