Operator '!' is supposed to be true when an angle is 'no rotation'. It was failing...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 28 Sep 2007 02:07:59 +0000 (02:07 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 28 Sep 2007 02:07:59 +0000 (02:07 +0000)
git-svn-id: http://svn.voria.com/code@789 1f10aa63-cdf2-0310-b900-c93c546f37ac

ETL/trunk/ETL/_angle.h

index 67989ca..bd3231a 100644 (file)
@@ -225,7 +225,7 @@ public:
                return ret;
        }
 
-       bool operator!()const { return v==0; }
+       bool operator!()const { return std::abs(mod().v) < epsilon; }
 
 private: