I have a multidimensinal array containing a list of pairs of coordinates:
var coordinates = [
[
16.383223226146004,
48.21122334186088
],
[
16.384753966103307,
48.211128793925674
],
[
16.384923422642906,
48.211127770652936
],
[
16.38575514277135,
48.21122830416087
]...
What is the most performant option to switch the coordinate pairs around for all the entries in the array. The list of coordinates can be very long, so I'm looking for a fast working solution.
Expected result:
coordinates = [
[
48.21122334186088,
16.383223226146004
],
[
48.211128793925674,
16.384753966103307
],
[
48.211127770652936
16.384923422642906,
],
[
48.21122830416087,
16.38575514277135
]...
