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

fix distance method when on two different sheets of the double covering

[[Imported from SVN: r8329]]
parent c498f4e5
No related branches found
No related tags found
No related merge requests found
......@@ -554,7 +554,7 @@ public:
T dist = 2*std::acos( std::min(diff[3],1.0) );
if (dist>=M_PI)
diff *= -1;
return 2*M_PI - dist;
// Compute the geodesical distance between a and b on SO(3)
// Due to numerical dirt, diff[3] may be larger than 1.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment