circle_from_points_xy

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

Create a circle from three points lying in the XY-plane

Parameters
  • a (sequence of float) – XY(Z) coordinates of a 2D or 3D point (Z will be ignored).

  • b (sequence of float) – XY(Z) coordinates of a 2D or 3D point (Z will be ignored).

  • c (sequence of float) – XY(Z) coordinates of a 2D or 3D point (Z will be ignored).

Returns

tuple – XYZ coordinates of center in the XY-plane (Z = 0.0) and radius of the circle.

Notes

For more info, see 1.

References

1

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

Examples

>>>