Divides both start and end points by given x,y
import { Lines } from 'https://unpkg.com/ixfx/dist/geometry.js'// Line 1,1 -> 10,10const l = Lines.fromNumbers(1,1,10,10);const ll = Lines.divide(l, {x:2, y:4});// Yields: 0.5,0.25 -> 5,2.5 Copy
import { Lines } from 'https://unpkg.com/ixfx/dist/geometry.js'// Line 1,1 -> 10,10const l = Lines.fromNumbers(1,1,10,10);const ll = Lines.divide(l, {x:2, y:4});// Yields: 0.5,0.25 -> 5,2.5
Dividing by zero will give Infinity for that dimension.
Divides both start and end points by given x,y
Dividing by zero will give Infinity for that dimension.