Пример #1
0
    def __init__(self, pnt, other_shapes):
        pnt = CheckGeom.to_point(pnt)
        if not pnt:
            raise TypeError('Invalid point type provided.')

        v = Vertex.by_point(pnt)
        super(DistancePointToShapes, self).__init__(v, other_shapes)
Пример #2
0
 def __init__(self, pnt):
     self._v = Vertex.by_point(pnt)