Diagonal Mirror Questions
One way to tackle a problem like diagonal mirroring is to figure out what you want to do on some small samples. If you don't know how to specify something in English and get the right result you won't be able to do it in Java.
As an example here is a 2-d array of numbers (3 rows and 3 columns)
After diagonal mirroring (around a mirror from x=0,y=height-1 and
x=width-1 and y=0)
Another example is a 2-d array of numbers (4 rows and 4 columns)
1 | 2 | 3 | 4 |
5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 |
after diagonal mirroring we have
Links to this Page
- Questions last edited on 30 January 2006 at 1:29 pm by user-11216ng.dsl.mindspring.com
- Mirror diagonal method last edited on 30 January 2006 at 10:32 am by user-11216ng.dsl.mindspring.com