Changeset 15123 in josm


Ignore:
Timestamp:
2019-05-27T16:39:33+02:00 (5 years ago)
Author:
GerdP
Message:

improve javadoc: document some problems with intersection test PolyData.contains()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/Multipolygon.java

    r14146 r15123  
    332332
    333333        /**
    334          * Checks if this multipolygon contains or crosses an other polygon
     334         * Checks if this multipolygon contains or crosses an other polygon. This is a quick+lazy test which assumes
     335         * that a polygon is inside when all points are inside. It will fail when the polygon encloses a hole or crosses
     336         * the edges of poly so that both end points are inside poly (think of a square overlapping a U-shape).
    335337         * @param p The path to check. Needs to be in east/north space.
    336338         * @return a {@link Intersection} constant
Note: See TracChangeset for help on using the changeset viewer.