X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2F_fastangle.h;h=461a78d5c729d53c8e4adb830531f66b92976545;hb=36d01e1527fda602a9aed07d209eb34e6770bca8;hp=1cb4674cad388c2d269cfa0f1999b0b471ebe20a;hpb=b3016b249333ac0ab0008d8c6c4d9029b2ff30c9;p=synfig.git diff --git a/ETL/trunk/ETL/_fastangle.h b/ETL/trunk/ETL/_fastangle.h index 1cb4674..461a78d 100644 --- a/ETL/trunk/ETL/_fastangle.h +++ b/ETL/trunk/ETL/_fastangle.h @@ -1,7 +1,7 @@ /*! ======================================================================== ** Extended Template and Library ** Fast fastangle Abstraction Class Implementation -** $Id: _fastangle.h,v 1.1.1.1 2005/01/04 01:31:47 darco Exp $ +** $Id$ ** ** Copyright (c) 2002 Robert B. Quattlebaum Jr. ** @@ -63,9 +63,9 @@ protected: typedef fixed_base unit; unit v; //! Stored in rotations - + public: - + /* ** Arithmetic Operators */ @@ -107,7 +107,7 @@ public: ret.v=v/rhs; return ret; } - + const fastangle & operator+=(const fastangle &rhs) { @@ -144,7 +144,7 @@ public: ret.v=-v; return ret; } - + //! 180 degree rotation operator /*! Returns the fastangle directly opposite of the given fastangle, and will yield a result @@ -259,7 +259,7 @@ public: class sin; class cos; - class tan; + class tan; /* ** Friend classes @@ -385,7 +385,7 @@ public: else v.data()=_fastangle_atan_table[(int)((x+1)*(value_type)((1<<(ETL_FASTANGLE_LOOKUP_RES-1))-1))]; } - + tan(const value_type &y,const value_type &x) { if(x>=0 && y>=0) // First quadrant @@ -451,7 +451,7 @@ struct distance_func : public std::binary_function