]> git.mxchange.org Git - simgear.git/blobdiff - simgear/math/SGMathTest.cxx
Ignore generated binaries.
[simgear.git] / simgear / math / SGMathTest.cxx
index 2855b77af688e5e553f3feb2f61adde808577003..c733fca0d484696524ecb0303247c24bf3c3bcd8 100644 (file)
@@ -1,3 +1,20 @@
+// Copyright (C) 2006  Mathias Froehlich - Mathias.Froehlich@web.de
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Library General Public
+// License as published by the Free Software Foundation; either
+// version 2 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Library General Public License for more details.
+//
+// You should have received a copy of the GNU Library General Public
+// License along with this library; if not, write to the
+// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+// Boston, MA  02111-1307, USA.
+//
 
 #ifdef HAVE_CONFIG_H
 #  include <simgear_config.h>
@@ -126,7 +143,7 @@ QuatTest(void)
   q2 = SGQuat<T>::fromAngleAxis(y, e2);
   q3 = SGQuat<T>::fromAngleAxis(x, e1);
   v2 = q3.transform(q2.transform(q1.transform(v1)));
-  q4 = SGQuat<T>::fromEuler(z, y, x);
+  q4 = SGQuat<T>::fromEulerRad(z, y, x);
   if (!equivalent(q4.transform(v1), v2))
     return false;
 
@@ -219,7 +236,7 @@ sgInterfaceTest(void)
 {
   SGVec3f v3f = SGVec3f::e2();
   SGVec4f v4f = SGVec4f::e2();
-  SGQuatf qf = SGQuatf::fromEuler(1.2, 1.3, -0.4);
+  SGQuatf qf = SGQuatf::fromEulerRad(1.2, 1.3, -0.4);
   SGMatrixf mf(qf, v3f);
 
   // Copy to and from plibs types check if result is equal,
@@ -266,7 +283,7 @@ sgdInterfaceTest(void)
 {
   SGVec3d v3d = SGVec3d::e2();
   SGVec4d v4d = SGVec4d::e2();
-  SGQuatd qd = SGQuatd::fromEuler(1.2, 1.3, -0.4);
+  SGQuatd qd = SGQuatd::fromEulerRad(1.2, 1.3, -0.4);
   SGMatrixd md(qd, v3d);
 
   // Copy to and from plibs types check if result is equal,