]> git.mxchange.org Git - flightgear.git/commitdiff
Tweaks from Durk.
authorcurt <curt>
Fri, 10 Sep 1999 17:00:55 +0000 (17:00 +0000)
committercurt <curt>
Fri, 10 Sep 1999 17:00:55 +0000 (17:00 +0000)
src/Time/mymath.cxx

index 5f288d0a19d840db2697891c102896509c157084..af33f3caab286354bc7a75ff6782cb71a660cf18 100755 (executable)
@@ -52,8 +52,8 @@ double Vector::VecLen()
 
    double length = 0;
    for (int i= 0; i < nrData; i++)
-               length += powl(data[i],2);
-   return sqrtl(length);
+               length += pow(data[i],2);
+   return sqrt(length);
 }
 
 
@@ -89,10 +89,12 @@ Vector VecCross(Vector first, Vector second)
             exit(1);
         }
         #endif
+       
        double x = first.data[1] * second.data[2] - first.data[2]*second.data[1];
         double y = first.data[2] * second.data[0] - first.data[0]*second.data[2];
         double z = first.data[0] * second.data[1] - first.data[1]*second.data[0];
-       return Vector(x,y,z);
+       Vector result(x,y,z);
+       return result;
 }