2 real.hh -- declare Real
4 source file of the Flower Library
6 (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
15 extern const Real infinity_f;
17 template<class T> inline T abs (T x)
19 return x > 0 ? x : -x;
22 template<class T> inline int sign (T x)
25 return x > T (0) ? 1 : -1;
29 template<class T> inline T max (T x, T y)
34 template<class T> inline T sqr (T x)
39 template<class T> inline T min (T x, T y)
45 distance (Real x, Real y)