-- distance between two points
-- distance to line ab (piece of line)-- if a=b then Result = distance(a)--
-- nearest point from pl