Skip to content
Snippets Groups Projects
Commit ef2fc8a8 authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Replace 1.0 by T(1.0)

This fixes a dubious compiler error.

[[Imported from SVN: r9871]]
parent 3f200187
No related branches found
No related tags found
No related merge requests found
...@@ -574,7 +574,7 @@ public: ...@@ -574,7 +574,7 @@ public:
T sp = a.globalCoordinates() * b.globalCoordinates(); T sp = a.globalCoordinates() * b.globalCoordinates();
// Scalar product may be larger than 1.0, due to numerical dirt // Scalar product may be larger than 1.0, due to numerical dirt
T dist = 2*std::acos( std::min(sp,1.0) ); T dist = 2*std::acos( std::min(sp,T(1.0)) );
// Make sure we do the right thing if a and b are not in the same sheet // Make sure we do the right thing if a and b are not in the same sheet
// of the double covering of the unit quaternions over SO(3) // of the double covering of the unit quaternions over SO(3)
......
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