We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 624a83b commit ea059bdCopy full SHA for ea059bd
geometry/graham_scan.py
@@ -38,9 +38,16 @@ class Point:
38
x: float
39
y: float
40
41
- def __init__(self, x: float, y: float) -> None:
42
- self.x = float(x)
43
- self.y = float(y)
+ def __init__(self, x_coordinate: float, y_coordinate: float) -> None:
+ """
+ Initialize a 2D point.
44
+
45
+ Args:
46
+ x_coordinate: The x-coordinate (horizontal position) of the point
47
+ y_coordinate: The y-coordinate (vertical position) of the point
48
49
+ self.x = float(x_coordinate)
50
+ self.y = float(y_coordinate)
51
52
def __eq__(self, other: object) -> bool:
53
"""
0 commit comments