[skip ci] fixed bug of double execution of np.degrees in asAxisAngle

This commit is contained in:
Philip Eisenlohr 2020-04-14 12:21:35 -04:00
parent 99ec48aba4
commit d3eba41519
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ class Rotation:
""" """
ax = Rotation.qu2ax(self.quaternion) ax = Rotation.qu2ax(self.quaternion)
if degrees: ax[3] = np.degrees(ax[3]) if degrees: ax[3] = np.degrees(ax[3])
return (ax[:3],np.degrees(ax[3])) if pair else ax return (ax[:3],ax[3]) if pair else ax
def asMatrix(self): def asMatrix(self):
"""Rotation matrix.""" """Rotation matrix."""