MCPcopy Create free account
hub / github.com/google-deepmind/alphageometry / __add__

Method __add__

numericals.py:59–60  ·  view source on GitHub ↗
(self, p: Point)

Source from the content-addressed store, hash-verified

57 return (self.x, self.y) > (other.x, other.y)
58
59 def __add__(self, p: Point) -> Point:
60 return Point(self.x + p.x, self.y + p.y)
61
62 def __sub__(self, p: Point) -> Point:
63 return Point(self.x - p.x, self.y - p.y)

Callers

nothing calls this directly

Calls 1

PointClass · 0.70

Tested by

no test coverage detected