Returns the mid-point of a line (same as interpolate with an amount of 0.5)
interpolate
import { Lines } from 'https://unpkg.com/ixfx/dist/geometry.js'Lines.midpoint(line); // Returns {x, y} Copy
import { Lines } from 'https://unpkg.com/ixfx/dist/geometry.js'Lines.midpoint(line); // Returns {x, y}
Optional
Returns the mid-point of a line (same as
interpolate
with an amount of 0.5)