Class S2Loop.ContainsRelation

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean foundSharedVertex  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ContainsRelation()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int aCrossingTarget()
      If A.contains(P) == false && B.contains(P) == true, it is equivalent to having an edge crossing (i.e., contains() returns false).
      int bCrossingTarget()  
      boolean foundSharedVertex()  
      boolean wedgesCross​(S2Point a0, S2Point ab1, S2Point a2, S2Point b0, S2Point b2)
      Given a vertex ab1 that is shared between the two loops, returns true if the two associated wedges (a0, ab1, b2) and (b0, ab1, b2) are equivalent to an edge crossing.
      • Methods inherited from class java.lang.Object

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

      • foundSharedVertex

        private boolean foundSharedVertex
    • Constructor Detail

      • ContainsRelation

        private ContainsRelation()
    • Method Detail

      • foundSharedVertex

        public boolean foundSharedVertex()
      • aCrossingTarget

        public int aCrossingTarget()
        If A.contains(P) == false && B.contains(P) == true, it is equivalent to having an edge crossing (i.e., contains() returns false).
        Specified by:
        aCrossingTarget in interface S2Loop.LoopRelation
      • wedgesCross

        public boolean wedgesCross​(S2Point a0,
                                   S2Point ab1,
                                   S2Point a2,
                                   S2Point b0,
                                   S2Point b2)
        Description copied from interface: S2Loop.LoopRelation
        Given a vertex ab1 that is shared between the two loops, returns true if the two associated wedges (a0, ab1, b2) and (b0, ab1, b2) are equivalent to an edge crossing. The loop relation is also allowed to maintain its own internal state, and can return true if it observes any sequence of wedges that are equivalent to an edge crossing.
        Specified by:
        wedgesCross in interface S2Loop.LoopRelation