Skip to content
Snippets Groups Projects
Commit 2046d8e4 authored by Simon Ottenhaus's avatar Simon Ottenhaus
Browse files

added TranslatePose(pose, x,y,z)

parent 2ae1912b
No related branches found
No related tags found
No related merge requests found
......@@ -304,6 +304,10 @@ namespace math
Position(p) += offset;
return p;
}
Eigen::Matrix4f math::Helpers::TranslatePose(const Eigen::Matrix4f &pose, float x, float y, float z)
{
return TranslatePose(pose, Eigen::Vector3f(x, y, z));
}
Eigen::Matrix4f Helpers::TranslateAndRotatePose(const Eigen::Matrix4f& pose, const Eigen::Vector3f& offset, const Eigen::Matrix3f& rotation)
{
......@@ -503,4 +507,7 @@ namespace math
}
return poses;
}
}
......@@ -164,6 +164,7 @@ namespace math
/// Translate the given pose by the given offset.
static Eigen::Matrix4f TranslatePose(const Eigen::Matrix4f& pose, const Eigen::Vector3f& offset);
static Eigen::Matrix4f TranslatePose(const Eigen::Matrix4f& pose, float x, float y, float z);
static Eigen::Matrix4f TranslateAndRotatePose(const Eigen::Matrix4f& pose, const Eigen::Vector3f& offset, const Eigen::Matrix3f& rotation);
......
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