Calculates slope of line.
import { Lines } from 'https://unpkg.com/ixfx/dist/geometry.js'Lines.slope(line);Lines.slope(ptA, ptB) Copy
import { Lines } from 'https://unpkg.com/ixfx/dist/geometry.js'Lines.slope(line);Lines.slope(ptA, ptB)
Line or point. If point is provided, second point must be given too
Optional
Second point if needed
Calculates slope of line.
Example