Class FastPointInPolygon

    • Constructor Detail

      • FastPointInPolygon

        public FastPointInPolygon​(P geom)
    • Method Detail

      • test

        public boolean test​(org.locationtech.jts.geom.Point point)
        Tests if the given bounding box is fully inside of the polygon.
        Specified by:
        test in interface Predicate<org.locationtech.jts.geom.Point>
      • crossingNumber

        protected int crossingNumber​(org.locationtech.jts.geom.Point point,
                                     boolean dir)
        ported from which is derived from
        point - Point to be processed
        dir - boolean: true -> horizontal test, false -> vertical test
        crossing number of this point in the chosen direction, if the value is even the point is outside of the polygon, otherwise it is inside