closest_point_on_circle
-
compas_singular.geometry.closest_point_on_circle(x0, y0, r)[source] Project point (x0, y0) onto circle with centre at (0, 0) and radius r.
- Parameters
x0 (float) – Point x coordinate.
y0 (float) – Point y coordinate.
r (float) – Circle radius.
- Returns
[x, y] (list) – The xy coordinates of the projected point.