Hi guys,
I did a search but didn't spot anything on this topic. Probably because it's confusing and very difficult (I think it is anyway). Nevertheless it's a critical problem for my work: how do you rotate an image by an arbitrary angle (i.e. not a multiple of 90 degrees)?
In a lot of flash games it seems to be a common thing to have an image rotate 'freely', but I just can't figure out how it works. How do you map a pixel to a location that doesn't necessarily correspond to a nice coordinate point?
If anyone in the know can elaborate with an explanation or even pseudocode, that would be awesome!
Thanks
PS: coding in java or c
I did a search but didn't spot anything on this topic. Probably because it's confusing and very difficult (I think it is anyway). Nevertheless it's a critical problem for my work: how do you rotate an image by an arbitrary angle (i.e. not a multiple of 90 degrees)?
In a lot of flash games it seems to be a common thing to have an image rotate 'freely', but I just can't figure out how it works. How do you map a pixel to a location that doesn't necessarily correspond to a nice coordinate point?
If anyone in the know can elaborate with an explanation or even pseudocode, that would be awesome!
Thanks
PS: coding in java or c