.corner(): Also accept (angle, radius) tuples

This commit is contained in:
Florian Festi 2019-03-24 21:45:45 +01:00
parent c09ee50fbd
commit f178215f20
1 changed files with 5 additions and 0 deletions

View File

@ -608,6 +608,11 @@ class Boxes:
""" """
try:
degrees, radius = degrees
except:
pass
rad = degrees * math.pi / 180 rad = degrees * math.pi / 180
if tabs and self.tabs: if tabs and self.tabs: