Class FastBboxInPolygon

    • Constructor Detail

      • FastBboxInPolygon

        public FastBboxInPolygon​(P geom)
        Constructor using a given geometry geom and geometry type P.
        Type Parameters:
        P - geometry type
        geom - geometry object
    • Method Detail

      • 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