]> git.mxchange.org Git - simgear.git/commitdiff
Fix problem in unit quaternion return.
authorfrohlich <frohlich>
Fri, 27 Feb 2009 05:16:52 +0000 (05:16 +0000)
committerTim Moore <timoore@redhat.com>
Fri, 27 Feb 2009 22:34:15 +0000 (23:34 +0100)
Modified Files:
SGQuat.hxx

simgear/math/SGQuat.hxx

index bb60788508b5f2496a5553909060488a9b90b232..1f6aaef004a24d3800bb267793f50615e24e518d 100644 (file)
@@ -213,7 +213,7 @@ public:
   {
     T nAxis = norm(axis);
     if (nAxis <= SGLimits<T>::min())
-      return SGQuat(1, 0, 0, 0);
+      return SGQuat::unit();
     T angle2 = 0.5*nAxis;
     return fromRealImag(cos(angle2), T(sin(angle2)/nAxis)*axis);
   }