public bool Lookup(string saoNum, out SAOEntry entry)
 {
     for (int i = 0; i < sao.Length; i++)
     {
         if (sao[i] == saoNum)
         {
             entry = new SAOEntry(sao[i], ra[i], de[i], mag[i]);
             return true;
         }
     }
     entry = new SAOEntry();
     return false;
 }
 public bool GetStarAtPosition(SkyVector position, double raError, double deError, out SAOEntry entry)
 {
     return GetStarAtPosition(position.RA, position.DE, raError, deError, out entry);
 }
 public bool GetStarAtPosition(HourAngle ra, Angle de, double raError, double deError, out SAOEntry entry)
 {
     return GetStarAtPosition(ra.Degrees, de.Degrees, raError, deError, out entry);
 }
Exemple #4
-1
 public bool GetStarAtPosition(double ra, double de, double raError, double deError, out SAOEntry entry)
 {
     for (int i = 0; i < this.ra.Length; i++)
     {
         if ((Math.Abs(ra - this.ra[i]) <= raError) && (Math.Abs(de - this.de[i]) <= deError))
         {
             entry = new SAOEntry(sao[i], this.ra[i], this.de[i], mag[i]);
             return true;
         }
     }
     entry = new SAOEntry(); 
     return false;
 }