def pts2Vec(pt1,pt2):
    """Returns a vector connecting to points.

    Args:
        pt1: geometry Object with reference origin

        pt2: geometry Object with reference origin

    Returns:
        Vector object: Vector points from pt1 to pt2.
    
    """
    if pt1._origin is pt2._origin:
        return pt2 - pt1
    else:
        raise ValueError("points must exist in same coordinate system")