コード例 #1
0
ファイル: GraphicsHelper.cs プロジェクト: kjin/TubeRacer
 public static RightAngleRotations Add(RightAngleRotations r1, RightAngleRotations r2)
 {
     return (RightAngleRotations)(((int)r1 + (int)r2) % 4);
 }
コード例 #2
0
ファイル: GraphicsHelper.cs プロジェクト: kjin/TubeRacer
 public static float ToRadians(RightAngleRotations r)
 {
     return MathHelper.PiOver2 * (int)r;
 }