Skip to content

Commit

Permalink
Replace TAU with math.tau
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Aug 12, 2024
1 parent 10dfb2a commit 4624f0e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions svg_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
OUTER_RADIUS = 180
INNER_RADIUS = OUTER_RADIUS / 2
CENTER = PADDING + OUTER_RADIUS
TAU = 2 * math.pi # The angle, in radians, of a full circle.


def annular_sector_path(start, stop):
Expand Down Expand Up @@ -59,9 +58,9 @@ def add_annular_sectors(wheel, packages, total):

def angles(index, total):
# Angle, in radians, of one wedge of the wheel.
angle_per_wedge = TAU / total
angle_per_wedge = math.tau / total
# Used to turn the start of the wheel from east to north.
quarter_circle = TAU / 4
quarter_circle = math.tau / 4

# Angle of the beginning of the wedge.
start = (index * angle_per_wedge) - quarter_circle
Expand Down

0 comments on commit 4624f0e

Please sign in to comment.