Returns the distance of point to the nearest point on line
point
line
import { Lines } from 'https://unpkg.com/ixfx/dist/geometry.js'const distance = Lines.distanceSingleLine(line, pt); Copy
import { Lines } from 'https://unpkg.com/ixfx/dist/geometry.js'const distance = Lines.distanceSingleLine(line, pt);
Line
Target point
Returns the distance of
point
to the nearest point online