Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
edgar1993a committed Jan 30, 2025
1 parent c785d0a commit 088c328
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pyFAI/utils/mathutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ def deg2rad(dd, disc=1):

def rad2rad(r, disc=1):
"""
Transform radians in the range [-π->π[ or [0->2π[
:param r: angle in radians
:return: angle in radians in the selected range
"""
# Set r between (0,2pi)
r = r % (2*math.pi)
Expand Down

0 comments on commit 088c328

Please sign in to comment.