Skip to content

Commit

Permalink
fix: EulerZYX -> EulerXYZ on moordyn::Euler2Quat()
Browse files Browse the repository at this point in the history
  • Loading branch information
sanguinariojoe committed Aug 7, 2024
1 parent 8f7bcba commit 5a5f7fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Misc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,9 @@ inline quaternion
Euler2Quat(const vec3& angles)
{
using AngleAxis = Eigen::AngleAxis<real>;
quaternion q = AngleAxis(angles.x(), vec3::UnitX()) *
quaternion q = AngleAxis(angles.z(), vec3::UnitZ()) *
AngleAxis(angles.y(), vec3::UnitY()) *
AngleAxis(angles.z(), vec3::UnitZ());
AngleAxis(angles.x(), vec3::UnitX());
return q;
}

Expand Down

0 comments on commit 5a5f7fd

Please sign in to comment.