hey guys
i got an image that when u open it u see a matrix. and i need to rotatre the picture in 90 degrees.==>>> it means to rotate the matrix
now the thing is that i don't know how long is the row or the colon of the matrix, cause you can pick a size of a matrix and change it whenever u want.
i'll be more than happy if u guys can help with that thing..
How can you now know width and height of the matrix? What can you do with it without this?
To rotate a thing 90 degrees, x' = -y, y' = x. Surely you would want positive indices only, so it's x' = (height-1)-y.
If you want to rotate in the other direction, just move the minus from y to x.