dist2d function

Distance from specific point to line