From: dooglus Date: Fri, 28 Sep 2007 02:07:52 +0000 (+0000) Subject: The zero(), one(), and half() functions weren't documented, and aren't used anywhere... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8ceee9e55e8fb6a4d32d81f7ff9f46f4d86a1209;p=synfig.git The zero(), one(), and half() functions weren't documented, and aren't used anywhere, but half() was returning a quarter rotation, and one() was returning a half rotation. Surely they're both meant to return twice that? Fixed accordingly, and commented them. git-svn-id: http://svn.voria.com/code@788 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/ETL/trunk/ETL/_angle.h b/ETL/trunk/ETL/_angle.h index b873255..67989ca 100644 --- a/ETL/trunk/ETL/_angle.h +++ b/ETL/trunk/ETL/_angle.h @@ -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; }