fork download
  1. using System;
  2.  
  3. public enum FlipRotate2dEnum : byte {
  4. None = 0,
  5. RotateTwice ,
  6. FlipX ,
  7. FlipY ,
  8. ReflectDiagonal1 ,
  9. ReflectDiagonal2 ,
  10. RotateClockwise ,
  11. RotateCounterClockwise ,
  12. NO = None,
  13. R2 = RotateTwice,
  14. FX = FlipX,
  15. FY = FlipY,
  16. D1 = ReflectDiagonal1,
  17. D2 = ReflectDiagonal2,
  18. RC = RotateClockwise,
  19. RCC = RotateCounterClockwise
  20. }
  21.  
  22. public class Test
  23. {
  24. public static void Main()
  25. {
  26. for(byte i = 0; i < 8; ++i) {
  27. FlipRotate2dEnum v = (FlipRotate2dEnum)i;
  28. System.Console.WriteLine("{0} {1}", i, v);
  29. }
  30. }
  31. }
Success #stdin #stdout 0.03s 15264KB
stdin
Standard input is empty
stdout
0 NO
1 RotateTwice
2 FX
3 FY
4 ReflectDiagonal1
5 ReflectDiagonal2
6 RotateClockwise
7 RotateCounterClockwise