/*! ========================================================================
** 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.
**
T reverse(const T &x, const T &b, const K &t)const
{
- return T( (x-b*t)*(static_cast<K>(1)/(static_cast<K>(1)-t)) );
- }
+ return T( (x-t*b)*(static_cast<K>(1)/(static_cast<K>(1)-t)) );
+ }
};
template <class T, class K=float>
T delta=b-a;
return static_cast<K>(delta*delta);
}
-
+
K cook(const K &x)const { return x*x; }
K uncook(const K &x)const { return sqrt(x); }
-
+
};
/* -- E N D ----------------------------------------------------------------- */