using System;
public enum FlipRotate2dEnum : byte {
None = 0, NO = None,
RotateTwice = 1, R2 = RotateTwice,
FlipX = 2, FX = FlipX,
FlipY = 3, FY = FlipY,
ReflectDiagonal1 = 4, D1 = ReflectDiagonal1,
ReflectDiagonal2 = 5, D2 = ReflectDiagonal2,
RotateClockwise = 6, RC = RotateClockwise,
RotateCounterClockwise = 7, RСС = 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);
} }
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGVudW0gRmxpcFJvdGF0ZTJkRW51bSA6IGJ5dGUgewogICAgTm9uZSAgICAgICAgICAgICAgID0gMCwgTk8gPSBOb25lLAogICAgUm90YXRlVHdpY2UgICAgICAgID0gMSwgUjIgPSBSb3RhdGVUd2ljZSwKICAgIEZsaXBYICAgICAgICAgICAgICA9IDIsIEZYID0gRmxpcFgsCiAgICBGbGlwWSAgICAgICAgICAgICAgPSAzLCBGWSA9IEZsaXBZLAogICAgUmVmbGVjdERpYWdvbmFsMSAgID0gNCwgRDEgPSBSZWZsZWN0RGlhZ29uYWwxLAogICAgUmVmbGVjdERpYWdvbmFsMiAgID0gNSwgRDIgPSBSZWZsZWN0RGlhZ29uYWwyLAogICAgUm90YXRlQ2xvY2t3aXNlICAgID0gNiwgUkMgPSBSb3RhdGVDbG9ja3dpc2UsCiAgICBSb3RhdGVDb3VudGVyQ2xvY2t3aXNlID0gNywgUtCh0KEgPSBSb3RhdGVDb3VudGVyQ2xvY2t3aXNlCn0KCnB1YmxpYyBjbGFzcyBUZXN0CnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKCXsKICAgICAgICBmb3IoYnl0ZSBpID0gMDsgaSA8IDg7ICsraSkgewogICAgICAgICAgICBGbGlwUm90YXRlMmRFbnVtIHYgPSAoRmxpcFJvdGF0ZTJkRW51bSlpOwogICAgICAgICAgICBTeXN0ZW0uQ29uc29sZS5Xcml0ZUxpbmUoInswfSB7MX0iLCBpLCB2KTsKICAgICAgICB9CX0KfQ==