Class Region

java.lang.Object
com.ardor3d.extension.terrain.util.Region

public class Region extends Object
Used to calculate clipmap block boundaries etc
  • Constructor Details

    • Region

      public Region(int x, int y, int width, int height)
    • Region

      public Region(int level, int x, int y, int width, int height)
  • Method Details

    • getX

      public int getX()
      Returns:
      the x
    • getY

      public int getY()
      Returns:
      the y
    • setX

      public void setX(int x)
      Parameters:
      x - the x to set
    • setY

      public void setY(int y)
      Parameters:
      y - the y to set
    • setWidth

      public void setWidth(int width)
    • setHeight

      public void setHeight(int height)
    • getLeft

      public int getLeft()
      Returns:
      the left
    • getRight

      public int getRight()
      Returns:
      the right
    • getTop

      public int getTop()
      Returns:
      the top
    • getBottom

      public int getBottom()
      Returns:
      the bottom
    • getWidth

      public int getWidth()
      Returns:
      the width
    • getHeight

      public int getHeight()
      Returns:
      the height
    • intersects

      public boolean intersects(Region r)
    • intersection

      public Region intersection(Region r)
    • getLevel

      public int getLevel()
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object