Function midpoint

Returns the mid-point of a line (same as interpolate with an amount of 0.5)

import { Lines } from 'https://unpkg.com/ixfx/dist/geometry.js'
Lines.midpoint(line); // Returns {x, y}