I've have two vectors A and B. I want to rotate both of them by the same angle until A is "upright" (has only a positive y component). Is it possible to calculate B without using functions like sin or tan?
I'm currently working on a game which solves this by calculating A's angle and rotating B by this angle. I hoped that there would be a more efficient way to do this to save some precious CPU-time.
Is this even possible? Or am I just to blind to see the obvious solution?
Thank you :-) Marek
edit: It's a planar problem. I've tried to illustrate it: