From 60dc0fe06cc7c98b598cd9abcdecabbae9899685 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 22 Dec 1996 15:57:41 +0000 Subject: [PATCH] flower-1.0.17 --- flower/real.hh | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/flower/real.hh b/flower/real.hh index 68e90f9b71..16f52b5092 100644 --- a/flower/real.hh +++ b/flower/real.hh @@ -1,29 +1,16 @@ #ifndef REAL_HH #define REAL_HH -typedef double Real; -inline Real sqr(Real x){ - return x*x; -} -inline Real MIN(Real x, Real y) { - return (x < y)? x : y; -} -inline Real MAX(Real x, Real y) { - return (x > y) ? x : y; -} -inline Real ABS(Real x) -{ - return (x>0)? x:-x; -} -inline -int sgn(Real x) { - if (!x)return 0; - return (x > 0) ?1: -1; -} +#include +#include +#include + +typedef double Real; + inline Real distance(Real x,Real y) { - return ABS(x-y); + return abs(x-y); } #endif -- 2.39.5