Calculates slope of line.

import { Lines } from 'https://unpkg.com/ixfx/dist/geometry.js'
Lines.slope(line);
Lines.slope(ptA, ptB)
  • Parameters

    • lineOrPoint: Point | Line

      Line or point. If point is provided, second point must be given too

    • Optionalb: Point

      Second point if needed

    Returns number