X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2F_calculus.h;h=279ed9129f7b0e42fe6934c67aa2c5e2f00103ce;hb=003520b8158176c1509825eef09f46cd417dcc16;hp=3e6266b54b4f7a9113a4a524fddc30a2088b1ecd;hpb=cee5940bae97612105db8b7e1ffcf513f9d9150c;p=synfig.git diff --git a/ETL/trunk/ETL/_calculus.h b/ETL/trunk/ETL/_calculus.h index 3e6266b..279ed91 100644 --- a/ETL/trunk/ETL/_calculus.h +++ b/ETL/trunk/ETL/_calculus.h @@ -1,7 +1,7 @@ /*! ======================================================================== ** Extended Template and Library ** Calculus Functional Classes Implementation -** $Id: _calculus.h,v 1.1.1.1 2005/01/04 01:31:46 darco Exp $ +** $Id$ ** ** Copyright (c) 2002 Robert B. Quattlebaum Jr. ** @@ -34,8 +34,6 @@ //#define _EPSILON 0.0000001 //#endif -#define ETL_FIXED_DERIVATIVE 1 - /* === T Y P E D E F S ===================================================== */ /* === C L A S S E S & S T R U C T S ======================================= */ @@ -53,11 +51,7 @@ public: typename T::result_type operator()(const typename T::argument_type &x)const { -#ifdef ETL_FIXED_DERIVATIVE return (func(x+epsilon)-func(x))/epsilon; -#else - return (func(x)-func(x+epsilon))/epsilon; -#endif } };