Skip to content

Commit

Permalink
Final QA (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
gahjelle authored Oct 4, 2024
1 parent 8e06d4e commit cad1048
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python-property/point_v6.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ def __init__(self, x, y):

@property
def distance(self):
return round(math.dist((0, 0), (self.x, self.y)))
return math.dist((0, 0), (self.x, self.y))

@property
def angle(self):
return round(math.degrees(math.atan(self.y / self.x)), 1)
return math.degrees(math.atan2(self.y, self.x))

def as_cartesian(self):
return self.x, self.y
Expand Down

0 comments on commit cad1048

Please sign in to comment.