Modifier and Type | Method and Description |
---|---|
static Queue<Coord> |
line2D(Coord a,
Coord b)
Generates a 2D Bresenham line between two points.
|
static Queue<Coord> |
line2D(int startX,
int startY,
int endX,
int endY)
Generates a 2D Bresenham line between two points.
|
static Queue<Coord3D> |
line3D(Coord3D a,
Coord3D b)
Generates a 3D Bresenham line between two points.
|
static Queue<Coord3D> |
line3D(int startx,
int starty,
int startz,
int endx,
int endy,
int endz)
Generates a 3D Bresenham line between the given coordinates.
|
public static Queue<Coord> line2D(Coord a, Coord b)
a
- the starting pointb
- the ending pointpublic static Queue<Coord> line2D(int startX, int startY, int endX, int endY)
startX
- the x coordinate of the starting pointstartY
- the y coordinate of the starting pointendX
- the x coordinate of the ending pointendY
- the y coordinate of the ending pointpublic static Queue<Coord3D> line3D(Coord3D a, Coord3D b)
a
- Coord to start from. This will be the first element of the listb
- Coord to end at. This will be the last element of the list.public static Queue<Coord3D> line3D(int startx, int starty, int startz, int endx, int endy, int endz)
startx
- the x coordinate of the starting pointstarty
- the y coordinate of the starting pointstartz
- the z coordinate of the starting pointendx
- the x coordinate of the starting pointendy
- the y coordinate of the starting pointendz
- the z coordinate of the starting pointCopyright © 2012–2016. All rights reserved.