ixfx
    Preparing search index...
    • Returns the nearest point on line(s) closest to point.

      const pt = Lines.nearest(line, {x:10,y:10});
      

      If an array of lines is provided, it will be the closest point amongst all the lines

      Parameters

      • lineOrLines: Line | Line[] | readonly Line[]

        Line or array of lines

      • point: Point

        Point to check

      Returns Point

      Point { x, y }