Esempio n. 1
0
 public static RightAngleRotations Add(RightAngleRotations r1, RightAngleRotations r2)
 {
     return (RightAngleRotations)(((int)r1 + (int)r2) % 4);
 }
Esempio n. 2
0
 public static float ToRadians(RightAngleRotations r)
 {
     return MathHelper.PiOver2 * (int)r;
 }