Added a wrapper for compute_distance2line