From: curt Date: Tue, 1 Jun 1999 21:01:03 +0000 (+0000) Subject: Update README.plib with clearer wording. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=87e641aeda429b2caa0c91de72943529a76caa9f;p=simgear.git Update README.plib with clearer wording. Fixed the == compare in point3d.hxx. --- diff --git a/Lib/Math/point3d.hxx b/Lib/Math/point3d.hxx index d677de8d..5e419a80 100644 --- a/Lib/Math/point3d.hxx +++ b/Lib/Math/point3d.hxx @@ -295,9 +295,9 @@ inline Point3D operator / (const Point3D& a, const double d) inline bool operator == (const Point3D& a, const Point3D& b) { return - (a.n[PX] - b.n[PX]) < fgPoint3_Epsilon && - (a.n[PY] - b.n[PY]) < fgPoint3_Epsilon && - (a.n[PZ] - b.n[PZ]) < fgPoint3_Epsilon; + fabs(a.n[PX] - b.n[PX]) < fgPoint3_Epsilon && + fabs(a.n[PY] - b.n[PY]) < fgPoint3_Epsilon && + fabs(a.n[PZ] - b.n[PZ]) < fgPoint3_Epsilon; } inline bool operator != (const Point3D& a, const Point3D& b)