I am developing a 2D game where the top-left corner is (x:0, y:0) thus x increasing when moving right and y increasing when moving down.
Same applies to all the rectangles rendered in the game, their top-left corner is their position.
So I am rotating an rectangle around its position(orginX:0 relative and orginY:0 relative).
I want to calculate the rectangles top-right position, taking the rotation into account.