I am programming a Tetris clone and in my game I store my tetromino blocks as 4x4 arrays of blocks. I now need to be able to rotate the integer positions in the arrays so th
I'd store (x, y) coordinates of the "cells" and use rotation matrix to rotate them.
See Drawing a Rotated Rectangle for example. You probably have to round the result to closest 0.5 increment.