MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __eq__

Method __eq__

geometry/jarvis_march.py:32–35  ·  view source on GitHub ↗
(self, other: object)

Source from the content-addressed store, hash-verified

30 self.y = y_coordinate
31
32 def __eq__(self, other: object) -> bool:
33 if not isinstance(other, Point):
34 return NotImplemented
35 return self.x == other.x and self.y == other.y
36
37 def __repr__(self) -> str:
38 return f"Point({self.x}, {self.y})"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected