X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2F_angle.h;h=f1a92061228d13b15a32f570d68a915966583b33;hb=5e17dc413c19054462e58826ac22a6a2ce96c95f;hp=1abf9303b9d392e66ef3ce914164119eb8c32503;hpb=4dd6c6c11c69d048bd14cddf9c4336017dcd6ea7;p=synfig.git diff --git a/ETL/trunk/ETL/_angle.h b/ETL/trunk/ETL/_angle.h index 1abf930..f1a9206 100644 --- a/ETL/trunk/ETL/_angle.h +++ b/ETL/trunk/ETL/_angle.h @@ -173,6 +173,17 @@ public: operator!=(const angle &rhs)const { return std::abs(dist(rhs).v)>epsilon; } + //! Absolute Angle Function + /*! This function will return the + absolute value of the angle. */ + angle + abs()const + { + angle ret; + ret.v=std::abs(v); + return ret; + } + //! Angle Difference Function /*! This function will return the shortest physical distance between