Ported point_line_distance() and removed same_point()