Ejemplo n.º 1
0
 public static double CalculateQiblah(double longitude, double latitude)
 {
     double result = double.NaN;
     DotFermion.Qiblah.QiblahCalculator calc = new DotFermion.Qiblah.QiblahCalculator(latitude, longitude);
     result = calc.Qiblah;
     return result;
 }
Ejemplo n.º 2
0
 public static double CalculateQiblah(GeoCoder g, Placemark p)
 {
     double result = double.NaN;
     if (g.StatusCode != GeoErrors.G_GEO_SUCCESS)
     {
         throw new ApplicationException("Cannot located Qiblah for your location.");
     }
     else
     {
         DotFermion.Qiblah.QiblahCalculator calc =
             new DotFermion.Qiblah.QiblahCalculator(p.Latitude,
                 p.Longitude);
         result = calc.Qiblah;
     }
     return result;
 }
Ejemplo n.º 3
0
 public static double CalculateQiblah(GeoCoder geoCoder)
 {
     double result = double.NaN;
     if (geoCoder.StatusCode != 200)
     {
         throw new ApplicationException("Address not found");
     }
     else
     {
         DotFermion.Qiblah.QiblahCalculator calc =
             new DotFermion.Qiblah.QiblahCalculator(geoCoder.Latitude,
                 geoCoder.Longitude);
         result = calc.Qiblah;
     }
     return result;
 }