From: dooglus Date: Wed, 5 Mar 2008 21:50:06 +0000 (+0000) Subject: Added a couple of comments. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b0d82d28d294043cd7bf90f89ac802bf2b2f71fe;p=synfig.git Added a couple of comments. git-svn-id: http://svn.voria.com/code@1859 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/ETL/trunk/ETL/_curve_func.h b/ETL/trunk/ETL/_curve_func.h index fc33402..b2898aa 100644 --- a/ETL/trunk/ETL/_curve_func.h +++ b/ETL/trunk/ETL/_curve_func.h @@ -36,11 +36,13 @@ template struct affine_combo { + // from (a) to (x) : x = a(1-t) + b(t) T operator()(const T &a,const T &b,const K &t)const { return T( (b-a)*t+a ); } + // from (x) to (a) : a = (x-b(t)) / (1-t) T reverse(const T &x, const T &b, const K &t)const { return T( (x-t*b)*(static_cast(1)/(static_cast(1)-t)) );