gh2941: fix LinearEntity intersection problems
fold _do_point_distance into distance for Segment