public class PathPoint
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
visited
True if the pathfinder has already visited this point
|
int |
xCoord
The x coordinate of this point
|
int |
yCoord
The y coordinate of this point
|
int |
zCoord
The z coordinate of this point
|
Constructor and Description |
---|
PathPoint(int x,
int y,
int z) |
Modifier and Type | Method and Description |
---|---|
float |
distanceTo(PathPoint pathpointIn)
Returns the linear distance to another path point
|
float |
distanceToSquared(PathPoint pathpointIn)
Returns the squared distance to another path point
|
boolean |
equals(java.lang.Object p_equals_1_) |
int |
hashCode() |
boolean |
isAssigned()
Returns true if this point has already been assigned to a path
|
static int |
makeHash(int x,
int y,
int z) |
java.lang.String |
toString() |
public final int xCoord
public final int yCoord
public final int zCoord
public boolean visited
public static int makeHash(int x, int y, int z)
public float distanceTo(PathPoint pathpointIn)
public float distanceToSquared(PathPoint pathpointIn)
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isAssigned()
public java.lang.String toString()
toString
in class java.lang.Object