Function fromPoints

Returns a line from two points

import { Lines } from 'https://unpkg.com/ixfx/dist/geometry.js'
// Line from 0,1 to 10,15
const line = Lines.fromPoints( { x:0, y:1 }, { x:10, y:15 });
// line is: { a: { x: 0, y: 1}, b: { x: 10, y: 15 } };