From 410e141e0e2545b77c48866e2460b3df57a33dad Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Fri, 17 Apr 2009 09:28:38 +0000
Subject: [PATCH] export tangent vector type

[[Imported from SVN: r4017]]
---
 src/rigidbodymotion.hh | 3 +++
 src/rotation.hh        | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/src/rigidbodymotion.hh b/src/rigidbodymotion.hh
index 04ea26e9..3247433a 100644
--- a/src/rigidbodymotion.hh
+++ b/src/rigidbodymotion.hh
@@ -8,6 +8,9 @@
 template <int dim, class ctype=double>
 struct RigidBodyMotion
 {
+    /** \brief Type of an infinitesimal rigid body motion */
+    typedef Dune::FieldVector<ctype, (dim==3) ? 6 : 3> TangentVector;
+
     // Translational part
     Dune::FieldVector<ctype, dim> r;
 
diff --git a/src/rotation.hh b/src/rotation.hh
index c632da95..c20900fa 100644
--- a/src/rotation.hh
+++ b/src/rotation.hh
@@ -34,6 +34,9 @@ class Rotation<3,T> : public Quaternion<T>
 
 public:
 
+    /** \brief Member of the corresponding Lie algebra.  This really is a skew-symmetric matrix */
+    typedef Dune::FieldVector<T,3> TangentVector;
+
     /** \brief Default constructor creates the identity element */
     Rotation()
         : Quaternion<T>(0,0,0,1)
-- 
GitLab