Class S2EdgeUtil.WedgeIntersects

    • Constructor Detail

      • WedgeIntersects

        public WedgeIntersects()
    • Method Detail

      • test

        public int test​(S2Point a0,
                        S2Point ab1,
                        S2Point a2,
                        S2Point b0,
                        S2Point b2)
        Given two edge chains (see WedgeRelation above), this function returns -1 if the region to the left of A intersects the region to the left of B, and 0 otherwise. Note that regions are defined such that points along a boundary are contained by one side or the other, not both. So for example, if A,B,C are distinct points ordered CCW around a vertex O, then the wedges BOA, AOC, and COB do not intersect.
        Specified by:
        test in interface S2EdgeUtil.WedgeProcessor