From: dooglus Date: Fri, 28 Sep 2007 02:07:20 +0000 (+0000) Subject: Since angles are stored in radians, we need to add on PI, not 0.5 to rotate by 180... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=fcd8a62d8c7920f2f11b4338b73a0ee94b85854d;p=synfig.git Since angles are stored in radians, we need to add on PI, not 0.5 to rotate by 180 degrees. git-svn-id: http://svn.voria.com/code@783 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/ETL/trunk/ETL/_angle.h b/ETL/trunk/ETL/_angle.h index 3868b3e..ae3b157 100644 --- a/ETL/trunk/ETL/_angle.h +++ b/ETL/trunk/ETL/_angle.h @@ -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