changes input coordinate Array in place, new height can also be accessed by coordinates[x][2]
Optional
if input is not WGS84
changes input coordinate Array in place, new height can also be accessed by coordinates[x][2]