Class S2ShapeMeasures.LoopOrder

  • Enclosing class:
    S2ShapeMeasures

    static class S2ShapeMeasures.LoopOrder
    extends java.lang.Object
    Represents a cyclic ordering of the loop vertices, starting at the index "first" and proceeding in direction "dir" (either +1 or -1). "first" and "dir" must be chosen such that (first, ..., first + n * dir) are all in the range [0, 2*n-1].
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int dir  
      (package private) int first  
    • Constructor Summary

      Constructors 
      Constructor Description
      LoopOrder​(int first, int dir)  
    • Field Detail

      • first

        final int first
      • dir

        final int dir
    • Constructor Detail

      • LoopOrder

        LoopOrder​(int first,
                  int dir)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object