java.lang.Object
net.buildtheearth.terraminusminus.util.TilePos

public class TilePos extends Object
Representation of a tile position (a 2D position and a zoom level).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final int
     
    protected final int
     
    protected final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    TilePos(int x, int z, int zoom)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
     
    int
    x()
     
    int
    z()
     
    int
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • x

      protected final int x
    • z

      protected final int z
    • zoom

      protected final int zoom
  • Constructor Details

    • TilePos

      public TilePos(int x, int z, int zoom)
  • Method Details

    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • x

      public int x()
    • z

      public int z()
    • zoom

      public int zoom()
    • toString

      public String toString()
      Overrides:
      toString in class Object