ixfx
    Preparing search index...
    • Subtracts both start and end points by given x,y

      // Line 1,1 -> 10,10
      const l = Lines.fromNumbers(1,1,10,10);
      const ll = Lines.subtract(l, {x:2, y:4});
      // Yields: -1,-3 -> 8,6

      Parameters

      Returns Line