eumap.datasets.eo.s2mosaic.speedups.dist_point_lineseg

dist_point_lineseg(x, y, x1, y1, x2, y2)[source]

Distance from point (x,y) to line segment (x1,y1):(x2,y2) Signed, negative if point is left of line (x coordinate of point is less then nearest point on lineseg)