I’m building a simple little vector game in 2D. I have a vector class which simply holds X and Y co-ordinates and have used three of these to create a little triangle spaceship. The co-ordinates are based about the arbitary origin posX and posY - which just happens to be the centre of the screen.
How do I go about rotating the points around this arbitary origin? Should I temporarily reset the posX and posY to (0,0) rotate and then move back to the arbitary origin or can I rotate the points where they are?