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

Method __sub__

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

Source from the content-addressed store, hash-verified

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)
64
65 def __mul__(self, f: float) -> Point:
66 return Point(self.x * f, self.y * f)

Callers

nothing calls this directly

Calls 1

PointClass · 0.70

Tested by

no test coverage detected