[josm-dev] JOSM BBoxes in and out

Rolf Bode-Meyer robome at gmail.com
Sun Apr 25 22:56:36 BST 2010


Hi!

I think that slowly but surely I've gone mad. I'm trying to understand
org.openstreetmap.josm.data.osm.BBox.inside(BBox b) for over an hour
now, but I just don't get it.
In both of the following cases inside called from the larger with the
smaller as argument it returns true.
+---------+   +-------+
| +-----+ |   |  +----+-+
| |     | |   |  |    | |
| |     | |   |  |    | |
| +-----+ |   |  +----+-+
+---------+   +-------+

Is this really the desired effect? Is my understanding of inside and
outside different?
Please enlighten me.

Rolf




More information about the josm-dev mailing list