Fix problem in unit quaternion return.

Modified Files:
	SGQuat.hxx
This commit is contained in:
frohlich
2009-02-27 05:16:52 +00:00
committed by Tim Moore
parent a4f1f62068
commit 8e5e657344

View 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);
}