Next / Previous / Contents / Shipman's homepage

16. normAngle(): Normalize an angle in radians

homcoord.py
# - - -   n o r m A n g l e

def normAngle(theta):
    '''Normalize an angle in radians to [0, 2*pi)
    '''
    return theta % TWO_PI