Lines Matching defs:Point
10 class Point(collections.namedtuple('Point', ['x', 'y'])):
24 if isinstance(other, Point):
25 return Point(self.x + other.x, self.y + other.y)
32 # on the right, which does not make sense for a Point.
37 return Point(factor * self.x, factor * self.y)
45 top_left: A pair of (left, top) coordinates. Might be given as a Point
52 if not isinstance(top_left, Point):
53 top_left = Point(*top_left)
54 if not isinstance(bottom_right, Point):
55 bottom_right = Point(*bottom_right)
75 return cls(Point(d['left'], d['top']), Point(d['right'], d['bottom']))