Skip to content
Snippets Groups Projects
Commit f504dd7c authored by jcarpent's avatar jcarpent
Browse files

[Spatial] Add missing const operator

parent 853abf8c
No related branches found
No related tags found
Loading
......@@ -293,19 +293,19 @@ namespace se3
}
template<typename EigenDerived>
typename EigenDerived::PlainObject actOnEigenObject(const Eigen::MatrixBase<EigenDerived> & p)
typename EigenDerived::PlainObject actOnEigenObject(const Eigen::MatrixBase<EigenDerived> & p) const
{ return EigenDerived::PlainObject(rot*p+trans); }
template<typename MapDerived>
Vector3 actOnEigenObject(const Eigen::MapBase<MapDerived> & p)
Vector3 actOnEigenObject(const Eigen::MapBase<MapDerived> & p) const
{ return Vector3(rot*p+trans); }
template<typename EigenDerived>
typename EigenDerived::PlainObject actInvOnEigenObject(const Eigen::MatrixBase<EigenDerived> & p)
typename EigenDerived::PlainObject actInvOnEigenObject(const Eigen::MatrixBase<EigenDerived> & p) const
{ return EigenDerived::PlainObject(rot.transpose()*(p-trans)); }
template<typename MapDerived>
Vector3 actInvOnEigenObject(const Eigen::MapBase<MapDerived> & p)
Vector3 actInvOnEigenObject(const Eigen::MapBase<MapDerived> & p) const
{ return Vector3(rot.transpose()*(p-trans)); }
Vector3 act_impl (const Vector3& p) const { return Vector3(rot*p+trans); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment