The zero(), one(), and half() functions weren't documented, and aren't used anywhere...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 28 Sep 2007 02:07:52 +0000 (02:07 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 28 Sep 2007 02:07:52 +0000 (02:07 +0000)
git-svn-id: http://svn.voria.com/code@788 1f10aa63-cdf2-0310-b900-c93c546f37ac

ETL/trunk/ETL/_angle.h

index b873255..67989ca 100644 (file)
@@ -198,6 +198,7 @@ public:
                return ret;
        }
 
+       //! Zero Rotation (0 degrees)
        static angle
        zero()
        {
@@ -206,19 +207,21 @@ public:
                return ret;
        }
 
+       //! One Complete Rotation (360 degrees)
        static angle
        one()
        {
                angle ret;
-               ret.v=PI;
+               ret.v=PI*2;
                return ret;
        }
 
+       //! One Half Rotation (180 degrees)
        static angle
        half()
        {
                angle ret;
-               ret.v=PI*0.5;
+               ret.v=PI;
                return ret;
        }