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

Method __init__

geometry/jarvis_march.py:28–30  ·  view source on GitHub ↗
(self, x_coordinate: float, y_coordinate: float)

Source from the content-addressed store, hash-verified

26 """Represents a 2D point with x and y coordinates."""
27
28 def __init__(self, x_coordinate: float, y_coordinate: float) -> None:
29 self.x = x_coordinate
30 self.y = y_coordinate
31
32 def __eq__(self, other: object) -> bool:
33 if not isinstance(other, Point):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected