Circle.closest_point

Circle.closest_point(point, return_parameter=False)[source]

Compute the closest point on the circle to a given point.

Parameters:
pointcompas.geometry.Point

A point.

return_parameterbool, optional

Return the parameter of the closest point as well.

Returns:
compas.geometry.Point

The closest point on the circle.

Notes

The location of the point is expressed with respect to the world coordinate system.