using System;
public enum FlipRotate2dEnum : byte {
None = 0,
RotateTwice ,
FlipX ,
FlipY ,
ReflectDiagonal1 ,
ReflectDiagonal2 ,
RotateClockwise ,
RotateCounterClockwise ,
NO = None,
R2 = RotateTwice,
FX = FlipX,
FY = FlipY,
D1 = ReflectDiagonal1,
D2 = ReflectDiagonal2,
RC = RotateClockwise,
RCC = RotateCounterClockwise
}
public class Test
{
public static void Main()
{
for(byte i = 0; i < 8; ++i) {
FlipRotate2dEnum v = (FlipRotate2dEnum)i;
System.Console.WriteLine("{0} {1}", i, v);
}
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGVudW0gRmxpcFJvdGF0ZTJkRW51bSA6IGJ5dGUgewogICAgTm9uZSAgICAgICAgICAgICA9IDAsIAogICAgUm90YXRlVHdpY2UgICAgICAgICwgCiAgICBGbGlwWCAgICAgICAgICAgICAgLCAKICAgIEZsaXBZICAgICAgICAgICAgICAsIAogICAgUmVmbGVjdERpYWdvbmFsMSAgICwgCiAgICBSZWZsZWN0RGlhZ29uYWwyICAgLCAKICAgIFJvdGF0ZUNsb2Nrd2lzZSAgICAsIAogICAgUm90YXRlQ291bnRlckNsb2Nrd2lzZSAsIAogICAgTk8gPSBOb25lLAogICAgUjIgPSBSb3RhdGVUd2ljZSwKICAgIEZYID0gRmxpcFgsCiAgICBGWSA9IEZsaXBZLAogICAgRDEgPSBSZWZsZWN0RGlhZ29uYWwxLAogICAgRDIgPSBSZWZsZWN0RGlhZ29uYWwyLAogICAgUkMgPSBSb3RhdGVDbG9ja3dpc2UsCiAgICBSQ0MgPSBSb3RhdGVDb3VudGVyQ2xvY2t3aXNlCn0KCnB1YmxpYyBjbGFzcyBUZXN0CnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKCXsKICAgICAgICBmb3IoYnl0ZSBpID0gMDsgaSA8IDg7ICsraSkgewogICAgICAgICAgICBGbGlwUm90YXRlMmRFbnVtIHYgPSAoRmxpcFJvdGF0ZTJkRW51bSlpOwogICAgICAgICAgICBTeXN0ZW0uQ29uc29sZS5Xcml0ZUxpbmUoInswfSB7MX0iLCBpLCB2KTsKICAgICAgICB9Cgl9Cn0=