for the transition period
This commit is contained in:
parent
6bedd84759
commit
9a1e8e3c38
|
@ -463,8 +463,8 @@ class Rotation:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def from_Euler_angles(phi,
|
def from_Euler_angles(phi,
|
||||||
degrees = False,
|
degrees = False,
|
||||||
**kwargs):
|
**kwargs):
|
||||||
"""
|
"""
|
||||||
Initialize from Bunge-Euler angles.
|
Initialize from Bunge-Euler angles.
|
||||||
|
|
||||||
|
@ -607,9 +607,9 @@ class Rotation:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def from_Rodrigues_vector(rho,
|
def from_Rodrigues_vector(rho,
|
||||||
normalize = False,
|
normalize = False,
|
||||||
P = -1,
|
P = -1,
|
||||||
**kwargs):
|
**kwargs):
|
||||||
"""
|
"""
|
||||||
Initialize from Rodrigues-Frank vector.
|
Initialize from Rodrigues-Frank vector.
|
||||||
|
|
||||||
|
@ -1440,3 +1440,9 @@ class Rotation:
|
||||||
np.where(np.maximum(np.abs(xyz[...,1]),np.abs(xyz[...,2])) <= np.abs(xyz[...,0]),1,2))
|
np.where(np.maximum(np.abs(xyz[...,1]),np.abs(xyz[...,2])) <= np.abs(xyz[...,0]),1,2))
|
||||||
|
|
||||||
return order[direction][p]
|
return order[direction][p]
|
||||||
|
|
||||||
|
|
||||||
|
# for compatibility with deprecated tests
|
||||||
|
Rotation.from_Eulers = Rotation.from_Euler_angles
|
||||||
|
Rotation.as_Eulers = Rotation.as_Euler_angles
|
||||||
|
Rotation.from_Rodrigues = Rotation.from_Rodrigues_vector
|
||||||
|
|
Loading…
Reference in New Issue