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

introduce const method 'inverse' for convenience

[[Imported from SVN: r6740]]
parent 3d2f2fe2
No related branches found
No related tags found
No related merge requests found
......@@ -146,6 +146,14 @@ public:
(*this) /= this->two_norm2();
}
/** \brief Yield the inverse quaternion */
Quaternion<T> inverse() const {
Quaternion<T> result = *this;
result.invert();
return result;
}
/** \brief Create three vectors which form an orthonormal basis of \mathbb{H} together
with this one.
......
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