[postgis-tickets] r16165 - Apply the epsilon fix to bounding circle (references #3930)
Paul Ramsey
pramsey at cleverelephant.ca
Wed Dec 20 06:28:56 PST 2017
Author: pramsey
Date: 2017-12-20 06:28:56 -0800 (Wed, 20 Dec 2017)
New Revision: 16165
Modified:
trunk/liblwgeom/lwboundingcircle.c
Log:
Apply the epsilon fix to bounding circle (references #3930)
Modified: trunk/liblwgeom/lwboundingcircle.c
===================================================================
--- trunk/liblwgeom/lwboundingcircle.c 2017-12-20 14:21:36 UTC (rev 16164)
+++ trunk/liblwgeom/lwboundingcircle.c 2017-12-20 14:28:56 UTC (rev 16165)
@@ -87,7 +87,7 @@
if (!c)
return LW_FALSE;
- if (distance2d_pt_pt(p, c->center) > c->radius)
+ if (distance2d_pt_pt(p, c->center) - c->radius > DBL_EPSILON)
return LW_FALSE;
return LW_TRUE;
More information about the postgis-tickets
mailing list