public class DDALine
extends java.lang.Object
| Constructor and Description |
|---|
DDALine() |
| Modifier and Type | Method and Description |
|---|---|
static Coord[] |
line_(Coord start,
Coord end)
Draws a line from start to end using the DDA algorithm.
|
static Coord[] |
line_(int startX,
int startY,
int endX,
int endY)
Draws a line from (startX, startY) to (endX, endY) using the DDA algorithm.
|
static 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.
|
static java.util.List<Coord> |
line(Coord start,
Coord end)
Draws a line from start to end using the DDA algorithm.
|
static java.util.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 java.util.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 static java.util.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 java.util.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 0xbfffpublic static java.util.List<Coord> line(Coord start, Coord end)
start - starting pointend - ending pointpublic static 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 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 © Eben Howard 2012–2022. All rights reserved.