I'm having trouble figuring out the math to rotate elements I load in programatically into WPF. The problem I'm encountering is that when you load in an image, it always loads in a certain way(see image). And when I try to face the elements towards the point, their angles are always wrong because of the way they initially load in(for example, the arrow on the left will always be pointing in the wrong direction).
I can easily solve the problem via hardcoding, but due to my requirements this can't be done as the arrows will not always be N,E,S,W. Any help would be appreciated.