This is a Rotation Matrix 2D Rotation Matrix can spin around of center X1=[Xcos(dir) - Ysin(dir)] Y1=[Xsin(dir) + Ycos(dir)] (WASD) and arrow keys for move or rotate camera
Rotation Matrix by: @TheOldAI123 Just simple mathematical