2 real.hh -- declare Real
4 source file of the Flower Library
6 (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
17 extern const Real infinity_f;
19 template<class T> inline T abs (T x)
21 return x > 0 ? x : -x;
24 template<class T> inline int sign (T x)
27 return x > T (0) ? 1 : -1;
31 template<class T> inline T max (T x, T y)
36 template<class T> inline T sqr (T x)
42 template<class T> inline T min (T x, T y)
48 distance (Real x,Real y)