Opened 4 years ago

#13556 new Bugs

boost::geometry::within() is not finding a point within a segment

Reported by: Josiah Slack <josiahnmi@…> Owned by: Barend Gehrels
Milestone: To Be Determined Component: geometry
Version: Boost 1.67.0 Severity: Problem
Keywords: Cc:

Description

1). I construct two segment objects which intersect, and use geometry::intersection() to select the point where they intersect.

2). I use geometry::within() to check that the point is within each of the segments.

I've found that if I use segments that are perpendicular, within() behaves as I would expect.

Attachments (1)

geometry_within_bug.cpp (710 bytes ) - added by Josiah Slack <josiahnmi@…> 4 years ago.

Download all attachments as: .zip

Change History (1)

by Josiah Slack <josiahnmi@…>, 4 years ago

Attachment: geometry_within_bug.cpp added
Note: See TracTickets for help on using tickets.