Exemple #1
0
 public void Test_S1IntervalTestBase_GetCenter()
 {
     Assert.Equal(quad12.GetCenter(), S2.M_PI_2);
     Assert2.DoubleEqual(new S1Interval(3.1, 2.9).GetCenter(), 3.0 - Math.PI);
     Assert2.DoubleEqual(new S1Interval(-2.9, -3.1).GetCenter(), Math.PI - 3.0);
     Assert2.DoubleEqual(new S1Interval(2.1, -2.1).GetCenter(), Math.PI);
     Assert.Equal(pi.GetCenter(), Math.PI);
     Assert.Equal(mipi.GetCenter(), Math.PI);
     Assert.Equal(Math.Abs(quad23.GetCenter()), Math.PI);
     Assert2.DoubleEqual(quad123.GetCenter(), 0.75 * Math.PI);
 }