Skip to content

Commit

Permalink
fix: Point class __repr__ str fix to (x, y) instead of (x, x)
Browse files Browse the repository at this point in the history
  • Loading branch information
FLming committed May 15, 2024
1 parent e3c41df commit 0b99058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foronoi/graph/point.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self, x=None, y=None, name=None, first_edge=None):
def __repr__(self):
if self.name is not None:
return f"P{self.name}"
return f"Point({self.xd:.2f}, {self.xd:.2f})"
return f"Point({self.xd:.2f}, {self.yd:.2f})"

def area(self, digits=None):
"""
Expand Down

0 comments on commit 0b99058

Please sign in to comment.