It removes the need for the .reverse() by passing bearing as a negative number instead of a positive.
It directly push each coordinate to the array coordinates instead of first pushing them to flatCoordinates and then creating coordinates from flatCoordinates
This PR achieves two things:
.reverse()
by passing bearing as a negative number instead of a positive.coordinates
instead of first pushing them toflatCoordinates
and then creatingcoordinates
fromflatCoordinates