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

bugfix

[[Imported from SVN: r1528]]
parent b5876c65
No related branches found
No related tags found
No related merge requests found
......@@ -310,7 +310,7 @@ public:
// Compute the geodesical distance between a and b on SO(3)
// Due to numerical dirt, diff[3] may be larger than 1.
// In that case, use 1 instead of diff[3].
T dist = 2*std::acos( diff[3]);
T dist = 2*std::acos( std::min(diff[3],1.0) );
T invSinc = 1/sincHalf(dist);
......
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