| | |
| | | return newPosition; |
| | | } |
| | | |
| | | //xy轴转坐标编号 |
| | | public static Short xyToPosition(int x, int y) { |
| | | StringBuffer sb = new StringBuffer(); |
| | | sb.append(y); |
| | | if (x < 10) { |
| | | sb.append("00"); |
| | | } else if (x < 100) { |
| | | sb.append("0"); |
| | | } |
| | | sb.append(x); |
| | | return Short.parseShort(sb.toString()); |
| | | } |
| | | |
| | | //转换行号,实际中最底层可能是第一行,在数组中最底层是最后一行,因此需要进行转换才可以匹配数据 |
| | | public static int covertRow(int row) { |
| | | NavigateMapData mapData = new NavigateMapData(); |
| | |
| | | //渲染 |
| | | NavigateNode fatherNode = null;//当前循环上一节点,用于拐点计算 |
| | | while (res_node != null) { |
| | | HashMap<String, Object> data = new HashMap<>(); |
| | | res_node.setDirection(null); |
| | | res_node.setIsInflectionPoint(false); |
| | | |