Since angles are stored in radians, we need to add on PI, not 0.5 to rotate by 180...
[synfig.git] / ETL / trunk / ETL / _angle.h
index 3868b3e..ae3b157 100644 (file)
@@ -122,8 +122,8 @@ public:
        operator~()const
        {
                angle ret;
-               ret.v=(value_type)std::floor(v+0.5f);
-               return ret;
+               ret.v = v+PI;
+               return ret.mod();
        }
 
        /*! Returns true if the shortest