Skip to content
Snippets Groups Projects
Commit 1d58922b authored by Fabian Paus's avatar Fabian Paus
Browse files

ArViz: Add direction method for Cylinder

parent 6c1a9f06
No related branches found
No related tags found
No related merge requests found
......@@ -88,6 +88,13 @@ namespace armarx::viz
return *this;
}
Cylinder& Cylinder::direction(Eigen::Vector3f direction)
{
orientation(Convert::directionToQuaternion(direction));
return *this;
}
Arrow& Arrow::direction(Eigen::Vector3f dir)
{
return orientation(Convert::directionToQuaternion(dir));
......
......@@ -88,6 +88,8 @@ namespace armarx::viz
}
Cylinder& fromTo(Eigen::Vector3f from, Eigen::Vector3f to);
Cylinder& direction(Eigen::Vector3f direction);
};
......
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