예제 #1
0
 public void Test_swe_d2l() {
     using (var target = new SwissEph()) {
         Assert.Equal(0, target.swe_d2l(0));
         Assert.Equal(123, target.swe_d2l(123.45));
         Assert.Equal(124, target.swe_d2l(123.987));
         Assert.Equal(-123, target.swe_d2l(-123.45));
         Assert.Equal(-124, target.swe_d2l(-123.987));
     }
 }
예제 #2
0
 public static double degtocs(double x)
 {
     return(SwissEph.swe_d2l((x) * SwissEph.DEG));
 }
예제 #3
0
 public void Test_swe_d2l()
 {
     using (var target = new SwissEph()) {
         Assert.AreEqual(0, target.swe_d2l(0));
         Assert.AreEqual(123, target.swe_d2l(123.45));
         Assert.AreEqual(124, target.swe_d2l(123.987));
         Assert.AreEqual(-123, target.swe_d2l(-123.45));
         Assert.AreEqual(-124, target.swe_d2l(-123.987));
     }
 }