Let me preface this by saying i know NOTHING about this kind of maths, so dont feel like you are oversimplifying. I have a directional vector firing out of an object and i need to rotate it by X amount left or right. The co-ordinates range from -1.0 to +1.0 on each axis. up until now i have been treating the maths aspect of this like a black box and have just been using premade functions to deal with it, but now i am totally lost.
Screenshot showing the format of the vector along with some lines showing what i want to do:
i am writing this in CPP and only have access to the inbuilt maths functions, no other libraries.