Package | Description |
---|---|
squidpony.squidmath |
Modifier and Type | Method and Description |
---|---|
static java.util.Queue<Point3D> |
Bresenham.line3D(int startx,
int starty,
int startz,
int endx,
int endy,
int endz)
Generates a 3D Bresenham line between the given coordinates.
|
static java.util.Queue<Point3D> |
Bresenham.line3D(Point3D a,
Point3D b)
Generates a 3D Bresenham line between two points.
|
Modifier and Type | Method and Description |
---|---|
double |
Point3D.distance(Point3D other)
Returns the linear distance between this coordinate point and the provided one.
|
static java.util.Queue<Point3D> |
Bresenham.line3D(Point3D a,
Point3D b)
Generates a 3D Bresenham line between two points.
|
int |
Point3D.manhattanDistance(Point3D other)
Returns the Manhattan distance between this point and the provided one.
|
int |
Point3D.maxAxisDistance(Point3D other)
Returns the largest difference between the two points along any one axis.
|
double |
Point3D.squareDistance(Point3D other)
Returns the square of the linear distance between this coordinate
point and the provided one.
|