--- rxvt-unicode/src/rxvtutil.h 2006/01/30 16:12:58 1.24 +++ rxvt-unicode/src/rxvtutil.h 2006/01/30 19:46:13 1.25 @@ -56,6 +56,8 @@ template static inline void swap (T& a, U& b) { T t=a; a=(T)b; b=(U)t; } +template static inline T squared_diff (T a, T b) { return (a-b)*(a-b); } + // linear interpolation template static inline