Class MatrixShape.Cell

java.lang.Object
uk.ac.starlink.ttools.plot2.geom.MatrixShape.Cell
Enclosing class:
MatrixShape

@Equality public static class MatrixShape.Cell extends Object
Represents one cell in a 2x2 matrix. Just encapsulates non-negative (X,Y) coordinates.
  • Constructor Details

    • Cell

      public Cell(int ix, int iy)
      Constructor.
      Parameters:
      ix - X index
      iy - Y index
  • Method Details

    • getX

      public int getX()
      Returns X index.
      Returns:
      index in X direction
    • getY

      public int getY()
      Returns Y index.
      Returns:
      index in Y direction
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object