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, 0.0] – Center of the circle in the XY plane.

  • float – Radius of the circle.

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

Notes

For more info, see 1.

References

1

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

Examples

>>>