import math


def arclen(angle, radius, rad=False):
    """Calculates the size of an arc of a circle"""
    if rad:
        angle = math.degrees(angle)
    return (angle / 360) * (2 * math.pi * radius)