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

Method __hash__

geometry/jarvis_march.py:40–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 return f"Point({self.x}, {self.y})"
39
40 def __hash__(self) -> int:
41 return hash((self.x, self.y))
42
43
44def _cross_product(origin: Point, point_a: Point, point_b: Point) -> float:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected