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

bugfix in the exponential map

[[Imported from SVN: r1109]]
parent b4e0b0da
No related merge requests found
......@@ -53,7 +53,7 @@ public:
T normV = std::sqrt(v0*v0 + v1*v1 + v2*v2);
// Stabilization for small |v| due to Grassia
T sin = (normV < 1e-4) ? 0.5 * (normV*normV/48) : std::sin(normV/2)/normV;
T sin = (normV < 1e-4) ? 0.5 + (normV*normV/48) : std::sin(normV/2)/normV;
// if normV == 0 then q = (0,0,0,1)
assert(!isnan(sin));
......
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