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