Fake 2D world rotation by moving elements of the world

Hello, I have a 2D game where I want the player to have the ability to change perspective of the world.
So far I have the ability to rotate from North to South, by multiplying every x and y with *-1, so basically eveyrhting flipped. But how do I make it so you can rotate the world 45 degrees?

Without knowing how your game is made a simple solution could be to simply put the world you want to be moved under an empty game object (making it the parent) and then having a script call to rotate that parent by 45 degrees with

        transform.Rotate(Vector3.forward, 45.0f);