closest_line_to_point

compas.geometry.closest_line_to_point(point, lines)[source]

Compute closest line to a point from a list of lines.

Parameters
  • point ([float, float, float] | Point) – XYZ coordinates of point.

  • lines (sequence[[point, point] | Line].) – The lines to be checked for distance.

Returns

tuple[point, point] – The closest line.