Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderFabisch committed Sep 28, 2023
1 parent 5e7515f commit ec9372d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytransform3d/rotations/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ def norm_angle(a):
Returns
-------
a_norm : float or array-like, shape (n,)
a_norm : float or array, shape (n,)
Normalized angle(s) in radians
"""
a = np.asarray(a, dtype=np.float64)
return (a - (np.ceil((a + np.pi) / two_pi) - 1.0) * two_pi)
return a - (np.ceil((a + np.pi) / two_pi) - 1.0) * two_pi


def norm_axis_angle(a):
Expand Down

0 comments on commit ec9372d

Please sign in to comment.