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 ([float, float] or [float, float, float] | Point) – XY(Z) coordinates of a 2D or 3D point (Z will be ignored).

  • b ([float, float] or [float, float, float] | Point) – XY(Z) coordinates of a 2D or 3D point (Z will be ignored).

  • c ([float, float] or [float, float, float] | Point) – XY(Z) coordinates of a 2D or 3D point (Z will be ignored).

Returns

([float, float, float], [float, float, float]), float – Center, normal and radius of the circle respectively.

Notes

For more info, see 1.

References

1

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

Examples

>>>