public final class Area
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Area(int topLeftX,
int topLeftY,
int bottonRightX,
int bottonRightY) |
Area(Location topLeft,
Location bottonRight) |
Modifier and Type | Method and Description |
---|---|
Location |
center() |
int |
chebyshevDistanceToBorder(Location l)
returns the minimal distance from l to the border of the area
|
java.lang.Object |
clone() |
boolean |
contains(Location l) |
int |
distanceMaxBorder(Location l)
Deprecated.
renamed to chebyshevDistanceToBorder
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public boolean contains(Location l)
public Location center()
public int distanceMaxBorder(Location l)
public int chebyshevDistanceToBorder(Location l)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object