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

in exp: assert that the tangent vector is orthogonal to the quaternion unit sphere

[[Imported from SVN: r6816]]
parent 93610e6e
No related branches found
No related tags found
No related merge requests found
...@@ -244,6 +244,8 @@ public: ...@@ -244,6 +244,8 @@ public:
*/ */
static Rotation<3,T> exp(const Rotation<3,T>& p, const EmbeddedTangentVector& v) { static Rotation<3,T> exp(const Rotation<3,T>& p, const EmbeddedTangentVector& v) {
assert( std::fabs(p*v) < 1e-8 );
// The vector v as a quaternion // The vector v as a quaternion
Quaternion<T> vQuat(v); Quaternion<T> vQuat(v);
......
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