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, and some classes for combinatorics.
|
Modifier and Type | Method and Description |
---|---|
Coord3D |
Radius.onUnitShape3D(double distance,
RNG rng) |
Modifier and Type | Method and Description |
---|---|
static Coord3D |
Coord3D.get(int x,
int y,
int z) |
static Coord3D |
CoordPacker.mortonDecode3D(int morton) |
Modifier and Type | Method and Description |
---|---|
static Queue<Coord3D> |
Bresenham.line3D(Coord3D a,
Coord3D b)
Generates a 3D Bresenham line between two points.
|
static 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 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 © 2012–2016. All rights reserved.