X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2F_fastangle.h;h=322a8cd5544aaa55427a4fd82f68b4d99919fef9;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=1cb4674cad388c2d269cfa0f1999b0b471ebe20a;hpb=b3016b249333ac0ab0008d8c6c4d9029b2ff30c9;p=synfig.git diff --git a/ETL/trunk/ETL/_fastangle.h b/ETL/trunk/ETL/_fastangle.h index 1cb4674..322a8cd 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. ** @@ -24,8 +24,8 @@ /* === S T A R T =========================================================== */ -#ifndef __ETL_FASTANGLE_H -#define __ETL_FASTANGLE_H +#ifndef __ETL__FASTANGLE_H +#define __ETL__FASTANGLE_H /* === H E A D E R S ======================================================= */ @@ -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 @@ -246,7 +246,7 @@ public: bool operator!()const { return v==unit(0); } /* - ** Converstion Classes + ** Conversion Classes */ class radians; @@ -254,12 +254,12 @@ public: class rotations; /* - ** Trigometric Classes + ** Trigonometric Classes */ 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