gaschler / rotationconverter

Simple HTML+JS page to convert between different 3D rotation formats, quaternion, Rodrigues angles, etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Math Error

Narglfrob opened this issue · comments

For this rotation matrix
rotation_matrix = [[-0.8829475929 , -0.1294039002,-0.4512850306],
[0.0000000000,-0.9612616959, 0.2756373558],
[-0.4694715628,0.2433733398, 0.8487437005]]

I expect the following results in Angle Axis (radians)

  • array([-0.73690633, 0.41537825, 2.95556985])

But instead, I get the following:

  • [ -0.7369063, 0.4153783, 2.9555698 ]

For this second rotation matrix (mirrored from the first)
rotation_matrix = [[-0.8829475929 , 0.1294039002,0.4512850306],
[0.0000000000,-0.9612616959, 0.2756373558],
[0.4694715628,0.2433733398 , 0.8487437005]]

I expect the following results in Angle Axis (radians)

  • array([-0.73690633, -0.41537825, -2.95556985])

But instead, I get the following:

  • [ 0.7691948, 0.4335785, 3.0850716 ]

Notice how my expected results are mirrored and symmetric (which matches my inputs & expectation) whereas the actual results are not symmetric.