Package jason.environment.grid
Class Location
java.lang.Object
jason.environment.grid.Location
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
int
calculates the Manhattan distance between two pointsint
returns the chessboard king (or Chebyshev) distance between two locations : max( |this.x - l.x| , |this.y - l.y|)double
calculates the Euclidean distance between two pointsint
calculates the Manhattan distance between two pointsboolean
int
hashCode()
boolean
boolean
boolean
int
Deprecated.renamed to distanceChessboardtoString()
-
Field Details
-
x
public int x -
y
public int y
-
-
Constructor Details
-
Location
public Location(int x, int y)
-
-
Method Details
-
distanceManhattan
calculates the Manhattan distance between two points -
distance
calculates the Manhattan distance between two points -
distanceEuclidean
calculates the Euclidean distance between two points -
distanceChebyshev
returns the chessboard king (or Chebyshev) distance between two locations : max( |this.x - l.x| , |this.y - l.y|) -
maxBorder
Deprecated.renamed to distanceChessboard -
isInArea
-
isInArea
-
isNeigbour
-
hashCode
public int hashCode() -
equals
-
clone
-
toString
-