Class S2EdgeUtil.WedgeContains

  • All Implemented Interfaces:
    S2EdgeUtil.WedgeProcessor
    Enclosing class:
    S2EdgeUtil

    public static class S2EdgeUtil.WedgeContains
    extends java.lang.Object
    implements S2EdgeUtil.WedgeProcessor
    Returns true if wedge A contains wedge B. Equivalent to but faster than getWedgeRelation() == WEDGE_PROPERLY_CONTAINS || WEDGE_EQUALS.
    • Constructor Summary

      Constructors 
      Constructor Description
      WedgeContains()  
    • 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, this function returns +1 if the region to the left of A contains the region to the left of B, and 0 otherwise.
      • Methods inherited from class java.lang.Object

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

      • WedgeContains

        public WedgeContains()