Returns a path wrapper around a line instance. This is useful if there are a series of operations you want to do with the same line because you don't have to pass it in as an argument to each function.

Note that the line is immutable, so a function like sum returns a new LinePath, wrapping the result of sum.

import { Lines } from 'https://unpkg.com/ixfx/dist/geometry.js'
// Create a path
const l = Lines.toPath(fromNumbers(0,0,10,10));

// Now we can use it...
l.length();

// Mutate functions return a new path
const ll = l.sum({x:10,y:10});
ll.length();