XY2YX(coordinates) { var yx = [] for (let i = 0; i < coordinates.length; i++) { var yxChild = [] for (let j = 0; j < coordinates[i].length; j++) { yxChild.push([coordinates[i][j][1], coordinates[i][j][0]]) } yx.push(yxChild) } return yx; },
XY2YX(coordinates) { var yx = [] for (let i = 0; i < coordinates.length; i++) { var yxChild = [] for (let j = 0; j < coordinates[i].length; j++) { yxChild.push([coordinates[i][j][1], coordinates[i][j][0]]) } yx.push(yxChild) } return yx; },