public class OrthoLine extends Object
Constructor and Description |
---|
OrthoLine() |
Modifier and Type | Method and Description |
---|---|
static List<Coord> |
line(Coord start,
Coord end)
Draws a line from start to end using only N/S/E/W movement.
|
static List<Coord> |
line(int startX,
int startY,
int endX,
int endY)
Draws a line from (startX, startY) to (endX, endY) using only N/S/E/W movement.
|
public OrthoLine()
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 pointCopyright © 2012–2016. All rights reserved.