Class Square


  • public class Square
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CORNERS  
      static int EDGES  
      static int NEIGHBORS  
    • Constructor Summary

      Constructors 
      Constructor Description
      Square()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int CornerIndex​(int x, int y)  
      static void EdgeCorners​(int idx, int[] c1, int[] c2)  
      static int EdgeIndex​(int orientation, int i)  
      static void FactorCornerIndex​(int idx, int[] x, int[] y)  
      static void FactorEdgeIndex​(int idx, int[] orientation, int[] i)  
      static int ReflectCornerIndex​(int idx, int edgeIndex)  
      static int ReflectEdgeIndex​(int idx, int edgeIndex)  
      • Methods inherited from class java.lang.Object

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

      • Square

        public Square()
    • Method Detail

      • CornerIndex

        public static int CornerIndex​(int x,
                                      int y)
      • FactorCornerIndex

        public static void FactorCornerIndex​(int idx,
                                             int[] x,
                                             int[] y)
      • EdgeIndex

        public static int EdgeIndex​(int orientation,
                                    int i)
      • FactorEdgeIndex

        public static void FactorEdgeIndex​(int idx,
                                           int[] orientation,
                                           int[] i)
      • EdgeCorners

        public static void EdgeCorners​(int idx,
                                       int[] c1,
                                       int[] c2)
      • ReflectEdgeIndex

        public static int ReflectEdgeIndex​(int idx,
                                           int edgeIndex)
      • ReflectCornerIndex

        public static int ReflectCornerIndex​(int idx,
                                             int edgeIndex)