View this PageEdit this Page (locked)Attachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide

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)
123
456
789

After diagonal mirroring (around a mirror from x=0,y=height-1 and
x=width-1 and y=0)

123
452
741

Another example is a 2-d array of numbers (4 rows and 4 columns)
1234
5678
9101112
13141516

after diagonal mirroring we have
1234
5673
91062
13951

Links to this Page