Modifier | Constructor and Description |
---|---|
private |
ValUtil() |
Modifier and Type | Method and Description |
---|---|
static List<Point2D> |
getSegmentCells(Node n1,
Node n2,
double gridDetail)
Returns the coordinates of all cells in a grid that a line between 2
nodes intersects with.
|
static List<List<Way>> |
getWaysInCell(Way w,
Map<Point2D,List<Way>> cellWays)
Returns the start and end cells of a way.
|
private ValUtil()
public static List<List<Way>> getWaysInCell(Way w, Map<Point2D,List<Way>> cellWays)
w
- The waycellWays
- The map with all cellspublic static List<Point2D> getSegmentCells(Node n1, Node n2, double gridDetail)
n1
- The first node.n2
- The second node.gridDetail
- The detail of the grid. Bigger values give smaller
cells, but a bigger number of them.