public class Coord3D extends Coord
Modifier and Type | Field and Description |
---|---|
int |
z |
Constructor and Description |
---|
Coord3D(int x,
int y,
int z)
Creates a three dimensional coordinate with the given location.
|
Modifier and Type | Method and Description |
---|---|
double |
distance(Coord3D other)
Returns the linear distance between this coordinate point and the
provided one.
|
boolean |
equals(Object o) |
static Coord3D |
get(int x,
int y,
int z) |
int |
hashCode() |
int |
manhattanDistance(Coord3D other)
Returns the Manhattan distance between this point and the provided one.
|
int |
maxAxisDistance(Coord3D other)
Returns the largest difference between the two points along any one axis.
|
double |
squareDistance(Coord3D other)
Returns the square of the linear distance between this coordinate point
and the provided one.
|
add, add, add, average, degrees, distance, distance, distanceSq, distanceSq, divide, divide, divide, divideRounding, expandPool, get, getCacheHeight, getCacheWidth, getLocation, getX, getY, isAdjacent, isWithin, isWithinRectangle, multiply, multiply, multiply, scale, scale, setX, setY, subtract, subtract, subtract, toGoTo, toString, translate, translate, translateCapped
public int z
public Coord3D(int x, int y, int z)
x
- y
- z
- public double distance(Coord3D other)
other
- public double squareDistance(Coord3D other)
other
- public int manhattanDistance(Coord3D other)
other
- public int maxAxisDistance(Coord3D other)
other
- Copyright © 2012–2016. All rights reserved.