public class Bresenham
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Queue<java.awt.Point> |
line2D(int startX,
int startY,
int endX,
int endY)
Generates a 2D Bresenham line between two points.
|
static java.util.Queue<java.awt.Point> |
line2D(java.awt.Point a,
java.awt.Point b)
Generates a 2D Bresenham line between two points.
|
static java.util.Queue<Point3D> |
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> |
line3D(Point3D a,
Point3D b)
Generates a 3D Bresenham line between two points.
|
public static java.util.Queue<java.awt.Point> line2D(java.awt.Point a, java.awt.Point b)
a
- b
- public static java.util.Queue<java.awt.Point> line2D(int startX, int startY, int endX, int endY)
startX
- startY
- endX
- endY
- public static java.util.Queue<Point3D> line3D(Point3D a, Point3D b)
a
- Point to start from. This will be the first element of the listb
- Point to end at. This will be the last element of the list.public static java.util.Queue<Point3D> line3D(int startx, int starty, int startz, int endx, int endy, int endz)
startx
- starty
- startz
- endx
- endy
- endz
-