ixfx
    Preparing search index...
    • Returns the distance of point to the nearest point on line.

      const d = Lines.distance(line, {x:10,y:10});
      

      If an array of lines is provided, the shortest distance is returned.

      Parameters

      • line: Line | readonly Line[]

        Line (or array of lines)

      • point: Point

        Point to check against

      Returns number

      Distance