So i have array that can look like this (javascript for the matter):
array = [{x: 0, y: 0}, {x: 1, y: 1}, {x: -4, y: 3}]
Each of the entrys has a x and y position. What i want to do is essentialy rotate those entrys 90 degrees in one direction.
Whats the simplest way to do this?