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 (sequenceof float) – XYZ coordinates of point.

  • lines (sequence of lines (tuples of points).) – The lines to be checked for distance.

Returns

tuple – the closest line.