From b0d82d28d294043cd7bf90f89ac802bf2b2f71fe Mon Sep 17 00:00:00 2001 From: dooglus Date: Wed, 5 Mar 2008 21:50:06 +0000 Subject: [PATCH] Added a couple of comments. git-svn-id: http://svn.voria.com/code@1859 1f10aa63-cdf2-0310-b900-c93c546f37ac --- ETL/trunk/ETL/_curve_func.h | 2 ++ 1 file changed, 2 insertions(+) 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)) ); -- 2.7.4