Skip to content
Snippets Groups Projects
Commit 0c04d3d7 authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

2d rotation gets methods exp and mult

[[Imported from SVN: r5688]]
parent c6612d31
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,20 @@ public:
return result;
}
/** \brief The exponential map from \f$ \mathfrak{so}(2) \f$ to \f$ SO(2) \f$
*/
static Rotation<2,T> exp(const Dune::FieldVector<T,1>& v) {
Rotation<2,T> result;
result.angle_ = v[0];
return result;
}
/** \brief Right multiplication */
Rotation<2,T> mult(const Rotation<2,T>& other) const {
Rotation<2,T> q = *this;
q.angle_ += other.angle_;
return q;
}
//private:
......
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