Skip to content

Commit cad1048

Browse files
authored
Final QA (#592)
1 parent 8e06d4e commit cad1048

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python-property/point_v6.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ def __init__(self, x, y):
88

99
@property
1010
def distance(self):
11-
return round(math.dist((0, 0), (self.x, self.y)))
11+
return math.dist((0, 0), (self.x, self.y))
1212

1313
@property
1414
def angle(self):
15-
return round(math.degrees(math.atan(self.y / self.x)), 1)
15+
return math.degrees(math.atan2(self.y, self.x))
1616

1717
def as_cartesian(self):
1818
return self.x, self.y

0 commit comments

Comments
 (0)