[Numpy-discussion] composing Euler rotation matrices

Stuart Reynolds stuart at stuartreynolds.net
Wed Feb 1 13:16:26 EST 2017


[off topic]
Nothing good ever comes from using Euler matrices. All the cool kids a
using quaternions these days. They're (in some ways) simpler, can be
interpolated easily, don't suffer from gimbal lock (discontinuity), and are
not confused about which axis rotation is applied first (for Euler you much
decide whether you want to apply x.y.z or z.y.x).

They'd be a good addition to numpy.



On Wed, Feb 1, 2017 at 1:42 AM, Matthew Brett <matthew.brett at gmail.com>
wrote:

> Hi,
>
> On Wed, Feb 1, 2017 at 8:28 AM, Robert McLeod <robbmcleod at gmail.com>
> wrote:
> > Instead of trying to decipher what someone wrote on a Wikipedia, why
> don't
> > you look at a working piece of source code?
> >
> > e.g.
> >
> > https://github.com/3dem/relion/blob/master/src/euler.cpp
>
> Also - have a look at https://pypi.python.org/pypi/transforms3d - and
> in particular you might get some use from symbolic versions of the
> transformations, e.g. here :
> https://github.com/matthew-brett/transforms3d/blob/master/transforms3d/
> derivations/eulerangles.py
>
> It's really easy to mix up the conventions, as I'm sure you know - see
> http://matthew-brett.github.io/transforms3d/reference/
> transforms3d.euler.html
>
> Cheers,
>
> Matthew
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> https://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20170201/52a96dbc/attachment.html>


More information about the NumPy-Discussion mailing list