2 real.hh -- declare Real
4 source file of the Flower Library
6 (c) 1997--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
18 extern const Real infinity_f
;
22 template<class T
> inline T
abs (T x
)
24 return x
> 0 ? x
: -x
;
30 distance (Real x
, Real y
)
35 template<class T
> inline int sign (T x
)
38 return x
> T (0) ? 1 : -1;
42 template<class T
> inline T
sqr (T x
)