X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2F_curve_func.h;h=fc33402c6f4cac2137b6a2b6074872226e74c773;hb=1b4973617401c7ebb5a191979697e01b395b23e4;hp=b1be012dd436f3d80624af07d42294629302aa99;hpb=117425a5858bb094f2e54af5d018499ab703b227;p=synfig.git diff --git a/ETL/trunk/ETL/_curve_func.h b/ETL/trunk/ETL/_curve_func.h index b1be012..fc33402 100644 --- a/ETL/trunk/ETL/_curve_func.h +++ b/ETL/trunk/ETL/_curve_func.h @@ -1,7 +1,7 @@ /*! ======================================================================== ** Extended Template and Library ** Utility Curve Template Class Implementations -** $Id: _curve_func.h,v 1.1.1.1 2005/01/04 01:31:47 darco Exp $ +** $Id$ ** ** Copyright (c) 2002 Robert B. Quattlebaum Jr. ** @@ -44,7 +44,7 @@ struct affine_combo T reverse(const T &x, const T &b, const K &t)const { return T( (x-t*b)*(static_cast(1)/(static_cast(1)-t)) ); - } + } }; template @@ -55,10 +55,10 @@ struct distance_func : public std::binary_function T delta=b-a; return static_cast(delta*delta); } - + K cook(const K &x)const { return x*x; } K uncook(const K &x)const { return sqrt(x); } - + }; /* -- E N D ----------------------------------------------------------------- */