Skip to content

Commit ea059bd

Browse files
chore: Algorithm-Keeper's comments addressed
1 parent 624a83b commit ea059bd

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

geometry/graham_scan.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,16 @@ class Point:
3838
x: float
3939
y: float
4040

41-
def __init__(self, x: float, y: float) -> None:
42-
self.x = float(x)
43-
self.y = float(y)
41+
def __init__(self, x_coordinate: float, y_coordinate: float) -> None:
42+
"""
43+
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)
4451

4552
def __eq__(self, other: object) -> bool:
4653
"""

0 commit comments

Comments
 (0)