From 9250cd7d3df3886dd680ddfcaaa5528123ecec25 Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 19 Dec 1996 00:25:47 +0000 Subject: [PATCH] flower-1.0.15 --- flower/real.hh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flower/real.hh b/flower/real.hh index 1f2187c8c1..68e90f9b71 100644 --- a/flower/real.hh +++ b/flower/real.hh @@ -21,5 +21,9 @@ int sgn(Real x) { if (!x)return 0; return (x > 0) ?1: -1; } - +inline Real +distance(Real x,Real y) +{ + return ABS(x-y); +} #endif -- 2.39.5