From fcd8a62d8c7920f2f11b4338b73a0ee94b85854d Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 28 Sep 2007 02:07:20 +0000 Subject: [PATCH] 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 --- ETL/trunk/ETL/_angle.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.7.4