Interface Area

    • Method Detail

      • getMinX

        int getMinX()
      • getMinY

        int getMinY()
      • getMaxX

        int getMaxX()
      • getMaxY

        int getMaxY()
      • getPlane

        int getPlane()
      • getWidth

        default int getWidth()
      • getHeight

        default int getHeight()
      • contains

        boolean contains​(int x,
                         int y,
                         int plane)
      • contains2D

        boolean contains2D​(int x,
                           int y)
      • contains2D

        boolean contains2D​(Positionable positionable)
      • distanceTo

        default int distanceTo​(Area area)
      • distanceTo

        default int distanceTo​(Positionable positionable)
      • distanceTo2D

        default int distanceTo2D​(Area area)
      • distanceTo2D

        default int distanceTo2D​(Positionable positionable)
      • getAxisDistances

        default net.eternalclient.api.data.Point getAxisDistances​(Area other)
        Computes the shortest distance to another area.
        Parameters:
        other - the passed area
        Returns:
        the distance along both x and y axis
      • getComparisonPoint

        default net.eternalclient.api.data.Point getComparisonPoint​(Area other)
        Gets the point within this area that is closest to another.
        Parameters:
        other - the other area
        Returns:
        the closest point to the passed area