2 real.hh -- declare Real
4 source file of the Flower Library
6 (c) 1997--1998 Han-Wen Nienhuys <hanwen@stack.nl>
18 const Real infinity_f = HUGE_VAL;
20 template<class T> inline T abs (T x)
22 return x > 0 ? x : -x;
25 template<class T> inline int sign (T x)
28 return x > 0 ? 1 : -1;
32 template<class T> inline T max (T x, T y)
37 template<class T> inline T sqr (T x)
43 template<class T> inline T min (T x, T y)
49 distance (Real x,Real y)