for 2d rotations you only need something like that:

x' = x cos f - y sin f
y' = y cos f + x sin f