コード例 #1
0
 public void Part1_AngleTest_LeftIs270() => Assert.AreEqual(270, Day10Main.AngleBetween(2, 1, 0, 1), 0.001f);
コード例 #2
0
 public void Part1_AngleTest_RightIs90() => Assert.AreEqual(90, Day10Main.AngleBetween(0, 1, 2, 1), 0.001f);
コード例 #3
0
 public void Part1_AngleTest_UpIs0() => Assert.AreEqual(0, Day10Main.AngleBetween(0, 2, 0, 1), 0.001f);
コード例 #4
0
 public void Part1_AngleTest_DownIs180() => Assert.AreEqual(180, Day10Main.AngleBetween(0, 1, 0, 4), 0.001f);