Opened 11 years ago
Closed 11 years ago
#406 closed enhancement (fixed)
Adjust Region(loc, loc) to handle potential rounding errors
Reported by: | Peter Powers | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | OpenSHA 1.3 |
Component: | commons | Version: | |
Keywords: | Cc: |
Description
When a Region(Location, Location) is initialized, it's north and east borders are expanded ever so slightly that contains() returns true. It turns out that double precision rounding errors can contribute to shifting the south and west borders such that nodes on those borders return false for contains(). The same 'inflation' logic should be applied there as well.
Note: See
TracTickets for help on using
tickets.
fixed in [9320]