Skip to content

Commit

Permalink
Use float type limits
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderFabisch committed Aug 7, 2023
1 parent b776a63 commit 52a7f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytransform3d/batch_rotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def axis_angles_from_matrices(Rs, traces=None, out=None):
# out[False, n] = value will not assign value to out[n]
traces = traces[0]

angles = np.arccos(np.clip((traces - 1.0) / 2.0, -1, 1))
angles = np.arccos(np.clip((traces - 1.0) / 2.0, -1.0, 1.0))

if out is None:
out = np.empty(instances_shape + (4,))
Expand Down

0 comments on commit 52a7f6c

Please sign in to comment.