ixfx
    Preparing search index...

    Function subtract

    • Subtracts both start and end points by given x,y

      import { Lines } from 'https://unpkg.com/ixfx/dist/geometry.js'

      // 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 Geometry.Line