Skip to content
Snippets Groups Projects
Commit 44638856 authored by Markus Grotz's avatar Markus Grotz
Browse files

extended Quaternion constructor

parent c86b1649
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,14 @@ namespace armarx
this->init(q);
}
Quaternion::Quaternion(::Ice::Float qw, ::Ice::Float qx, ::Ice::Float qy, ::Ice::Float qz)
{
this->qw = qw;
this->qx = qx;
this->qy = qy;
this->qz = qz;
}
Matrix3f Quaternion::toEigen() const
{
Matrix3f rot;
......
......@@ -133,6 +133,7 @@ namespace armarx
Quaternion(const Eigen::Matrix4f &);
Quaternion(const Eigen::Matrix3f &);
Quaternion(const Eigen::Quaternionf &);
Quaternion(::Ice::Float qw, ::Ice::Float qx, ::Ice::Float qy, ::Ice::Float qz);
Eigen::Matrix3f toEigen() const;
Eigen::Matrix3f slerp(float, const Eigen::Matrix3f &);
......
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