Skip to content

slight improvement to "Why Euler angles are horrible" #218

Description

@petaflot

first, I want to apologize for "being a nuisance" in #217 , I will try to be as short as possible.

as a matter of fact, your comment about

feel free to write your own function, like

def my_personal_idea_of_what_euler_angles_should_be(alpha, beta, gamma):
    return np.exp(alpha*quaternion.x/2) * np.exp(beta*quaternion.y/2) * np.exp(gamma*quaternion.z/2)

was the thing that made me go like "oh right this is what I missed". IMHO it should be included to your rant on Euler angles.

also and as a side note, I was surprised to get AttributeError: module 'quaternion' has no attribute 'w'

cheers and thanks for the work.

from someone who finds it so weird and unintuitive that

q = np.quaternion(1,2,3,4)
q.a == (1+4j)
q.b == (3+2j)

(yeah I should have tried this before)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions