def pt_2_seg_dist(pt, seg):
    """
    Desc: 计算点pt到线段seg的距离
    Args:
        pt : Point object
        seg : Segment object
    Returns:
        float, distance
    Raises:
        None
    """
    return pt.point().distance(seg.linestring())