def to_segment_distance(tree_segment: Segment) -> Scalar: return to_segments_distance(tree_segment, segment)
def to_segment_distance(index: int) -> Scalar: return to_segments_distance(tree.segments[index], segment)
def to_segment_distance(item: Item) -> Scalar: return to_segments_distance(item[1], segment)