[SciPy-Dev] suggestion re. scipy.spatial.transform.Rotation

Ali Cetin ali.cetin at outlook.com
Fri Sep 27 07:23:54 EDT 2019


DCM (directional cosine matrix) is the rotation matrix. In order to go in the reversed direction, just supply the "inverse = True" when calling the apply method.

(sorry for not using appropriate quote convention when replying. Answering from mobile from the beach ;))

Cheers,
Ali


From: Phillip Feldman
Sent: Friday, September 27, 09:20
Subject: [SciPy-Dev] suggestion re. scipy.spatial.transform.Rotation
To: SciPy Developers List


I've noticed that this class supports four of the five common representations of a rotation.  The one that's missing is the rotation matrix.  I can supply code that converts an arbitrary sequence of Euler rotations into a rotation matrix.  It would also be nice to be able to go in the reverse direction, but I haven't yet figured that out.

Phillip
scipy.spatial.transform.Rotation
class scipy.spatial.transform.Rotation(quat, normalized=False, copy=True)[source]<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fscipy%2Fscipy%2Fblob%2Fv1.3.0%2Fscipy%2Fspatial%2Ftransform%2Frotation.py%23L175-L1634&data=02%7C01%7C%7C354252ae8e2f42a5953008d74312c80b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637051620247406600&sdata=GeNhYQuZIucLxETZqlUlQ7hcxvmAuQApMfXHGzu%2BBiU%3D&reserved=0>
Rotation in 3 dimensions.
This class provides an interface to initialize from and represent rotations with:
Quaternions
Direction Cosine Matrices
Rotation Vectors
Euler angles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20190927/6104ab0c/attachment-0001.html>


More information about the SciPy-Dev mailing list