]> Creatis software - clitk.git/commitdiff
Replaced round function with portable rint function
authorsrit <srit>
Tue, 20 Jul 2010 19:29:43 +0000 (19:29 +0000)
committersrit <srit>
Tue, 20 Jul 2010 19:29:43 +0000 (19:29 +0000)
vv/vvToolRigidReg.cxx

index d1cc0657eaf6e0e4fa1f730a7c86e99a099de2b1..ec5d1ae4040df9a6ff3384e0e59341252b13c299 100644 (file)
@@ -463,9 +463,9 @@ void vvToolRigidReg::ReadFile()
 
     //In the Order or Y X Z //
     //now  postmultiply for the rotations
-    SetTransform(0,0,0,0,0,-round(orientations[2]),false);
-    SetTransform(0,0,0,-round(orientations[0]),0,0,false);
-    SetTransform(0,0,0,0,-round(orientations[1]),0,false);
+    SetTransform(0,0,0,0,0,-rint(orientations[2]),false);
+    SetTransform(0,0,0,-rint(orientations[0]),0,0,false);
+    SetTransform(0,0,0,0,-rint(orientations[1]),0,false);
 
     transform->GetPosition(translations);
     transform->Identity();