Opened 12 years ago

Closed 12 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.

Change History (1)

comment:1 Changed 12 years ago by Peter Powers

Resolution: fixed
Status: newclosed

fixed in [9320]

Note: See TracTickets for help on using tickets.