2 real.hh -- declare Real
4 source file of the Flower Library
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
18 const Real infinity_f = HUGE_VAL;
21 template<class T> inline T abs (T x)
23 return x > 0 ? x : -x;
26 template<class T> inline int sign (T x)
29 return x > 0 ? 1 : -1;
33 template<class T> inline T max (T x, T y)
38 template<class T> inline T sqr (T x)
44 template<class T> inline T min (T x, T y)
50 distance (Real x,Real y)