From 549e08b039a79cf064a10d4646c569ca274f2ecd Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Fri, 14 Jan 2011 11:06:34 +0000 Subject: [PATCH] add constructor from a translation and rotation [[Imported from SVN: r6748]] --- dune/gfe/rigidbodymotion.hh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dune/gfe/rigidbodymotion.hh b/dune/gfe/rigidbodymotion.hh index 4fc2d6fc..cb4c34f7 100644 --- a/dune/gfe/rigidbodymotion.hh +++ b/dune/gfe/rigidbodymotion.hh @@ -19,6 +19,16 @@ struct RigidBodyMotion /** \brief The type used for coordinates */ typedef T ctype; + + /** \brief Default constructor */ + RigidBodyMotion() + {} + + /** \brief Constructor from a translation and a rotation */ + RigidBodyMotion(const Dune::FieldVector<ctype, dim>& translation, + const Rotation<dim,ctype>& rotation) + : r(translation), q(rotation) + {} /** \brief The exponential map from a given point $p \in SE(d)$. -- GitLab