Class S2EdgeUtil.WedgeContainsOrCrosses

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int test​(S2Point a0, S2Point ab1, S2Point a2, S2Point b0, S2Point b2)
      Given two edge chains (see WedgeRelation above), this function returns +1 if A contains B, 0 if B contains A or the two wedges do not intersect, and -1 if the edge chains A and B cross each other (i.e.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WedgeContainsOrCrosses

        public WedgeContainsOrCrosses()
    • 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 A contains B, 0 if B contains A or the two wedges do not intersect, and -1 if the edge chains A and B cross each other (i.e. if A intersects both the interior and exterior of the region to the left of B). In degenerate cases where more than one of these conditions is satisfied, the maximum possible result is returned. For example, if A == B then the result is +1.
        Specified by:
        test in interface S2EdgeUtil.WedgeProcessor