IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 0aa6a48d authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

fixed rotations

parent 9b395471
No related branches found
No related tags found
No related merge requests found
...@@ -46,14 +46,14 @@ public: ...@@ -46,14 +46,14 @@ public:
auto rotate(QuantityVector<phys::units::length_d> axis, double angle) const auto rotate(QuantityVector<phys::units::length_d> axis, double angle) const
{ {
EigenTransform const rotation{Eigen::AngleAxisd(M_PI / 6, axis.eVector.normalized())}; EigenTransform const rotation{Eigen::AngleAxisd(angle, axis.eVector.normalized())};
return CoordinateSystem(*this, rotation); return CoordinateSystem(*this, rotation);
} }
auto translateAndRotate(QuantityVector<phys::units::length_d> translation, QuantityVector<phys::units::length_d> axis, double angle) auto translateAndRotate(QuantityVector<phys::units::length_d> translation, QuantityVector<phys::units::length_d> axis, double angle)
{ {
EigenTransform const transf{Eigen::AngleAxisd(M_PI / 6, axis.eVector.normalized()) * EigenTranslation(translation.eVector)}; EigenTransform const transf{Eigen::AngleAxisd(angle, axis.eVector.normalized()) * EigenTranslation(translation.eVector)};
return CoordinateSystem(*this, transf); return CoordinateSystem(*this, transf);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment