In an embedded C app, I have a large image that I\'d like to rotate by 90 degrees. Currently I use the well-known simple algorithm to do this. However, this algorithm requi
Here is a simple method in java,
public static void rotateMatrix(int[][] a) { int m =0; for(int i=0; i=end) break; int tmp = a[i][j]; a[i][j] = a[i][end]; a[i][end] = tmp; end--; } } }