Package | Description |
---|---|
squidpony.squidgrid |
Tools for working with data on a grid, including LOS and FOV; overlaps with geometry code in squidpony.squidmath .
|
squidpony.squidmath |
A very broad package containing random number generators, geometry tools, data structures, and noise functions.
|
Modifier and Type | Method and Description |
---|---|
Coord3D |
Radius.onUnitShape3D(double distance,
IRNG rng) |
Modifier and Type | Method and Description |
---|---|
static Coord3D |
Coord3D.get(int x,
int y,
int z) |
static Coord3D |
VanDerCorputQRNG.halton(int width,
int height,
int depth,
int index)
Convenience method that gets a quasi-random Coord3D between integer (0,0,0) inclusive and (width,height,depth)
exclusive.
|
static Coord3D |
CoordPacker.mortonDecode3D(int morton) |
Modifier and Type | Method and Description |
---|---|
static java.util.Queue<Coord3D> |
Bresenham.line3D(Coord3D a,
Coord3D b)
Generates a 3D Bresenham line between two points.
|
static java.util.Queue<Coord3D> |
Bresenham.line3D(int startx,
int starty,
int startz,
int endx,
int endy,
int endz)
Generates a 3D Bresenham line between the given coordinates.
|
Modifier and Type | Method and Description |
---|---|
double |
Coord3D.distance(Coord3D other)
Returns the linear distance between this coordinate point and the
provided one.
|
static java.util.Queue<Coord3D> |
Bresenham.line3D(Coord3D a,
Coord3D b)
Generates a 3D Bresenham line between two points.
|
int |
Coord3D.manhattanDistance(Coord3D other)
Returns the Manhattan distance between this point and the provided one.
|
int |
Coord3D.maxAxisDistance(Coord3D other)
Returns the largest difference between the two points along any one axis.
|
double |
Coord3D.squareDistance(Coord3D other)
Returns the square of the linear distance between this coordinate point
and the provided one.
|
Copyright © Eben Howard 2012–2022. All rights reserved.