Skip to content

Commit

Permalink
Apply the epsilon fix to bounding circle (references #3930)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/postgis/trunk@16165 b70326c6-7e19-0410-871a-916f4a2858ee
  • Loading branch information
pramsey committed Dec 20, 2017
1 parent 80636cf commit d1ae569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liblwgeom/lwboundingcircle.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ point_inside_circle(const POINT2D* p, const LWBOUNDINGCIRCLE* c)
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;
Expand Down

0 comments on commit d1ae569

Please sign in to comment.