Skip to content
Snippets Groups Projects
Commit 2a7d6506 authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Implement assignment from FieldVector<T,4>

[[Imported from SVN: r9846]]
parent bddf6fe8
No related branches found
No related tags found
No related merge requests found
...@@ -224,6 +224,14 @@ public: ...@@ -224,6 +224,14 @@ public:
typedef Rotation<U,3> other; typedef Rotation<U,3> other;
}; };
Rotation& operator= (const Dune::FieldVector<T,4>& other)
{
for (int i=0; i<4; i++)
(*this)[i] = other[i];
*this /= this->two_norm();
return *this;
}
/** \brief Assigment from RigidBodyMotion with different type -- used for automatic differentiation with ADOL-C */ /** \brief Assigment from RigidBodyMotion with different type -- used for automatic differentiation with ADOL-C */
template <class T2> template <class T2>
Rotation& operator <<= (const Rotation<T2,3>& other) { Rotation& operator <<= (const Rotation<T2,3>& other) {
......
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