Constructor and Description |
---|
DDALine() |
Modifier and Type | Method and Description |
---|---|
static List<Coord> |
line(Coord start,
Coord end)
Draws a line from start to end using the DDA algorithm.
|
static List<Coord> |
line(int startX,
int startY,
int endX,
int endY)
Draws a line from (startX, startY) to (endX, endY) using the DDA algorithm.
|
static List<Coord> |
line(int startX,
int startY,
int endX,
int endY,
int modifierX,
int modifierY)
Not intended for external use; prefer the overloads without a modifier argument.
|
public DDALine()
public static List<Coord> line(int startX, int startY, int endX, int endY)
startX
- x of starting pointstartY
- y of starting pointendX
- x of ending pointendY
- y of ending pointpublic static List<Coord> line(int startX, int startY, int endX, int endY, int modifierX, int modifierY)
startX
- x of starting pointstartY
- y of starting pointendX
- x of ending pointendY
- y of ending pointmodifierX
- an integer that should typically be one of 0x3fff, 0x7fff, or 0xbfffmodifierY
- an integer that should typically be one of 0x3fff, 0x7fff, or 0xbfffCopyright © 2012–2016. All rights reserved.