Esempio n. 1
0
 public double TimeAtRadius(double r, OrbHalf half, bool relative=false)
 {
     double ta = TrueAnomalyAtRadius(r);
     // If r is less than rPe, return NaN - calling function's responsibility to catch error
     if (half == OrbHalf.Before)
         return TimeAtTrueAnomaly(-ta, relative);
     else
         return TimeAtTrueAnomaly(ta, relative);
 }
Esempio n. 2
0
 public double TimeAtRadius(double r, OrbHalf half, bool relative=false)
 {
     double ta = TrueAnomalyAtRadius(r);
     if (half == OrbHalf.Before)
         return TimeAtTrueAnomaly(-ta, relative);
     else
         return TimeAtTrueAnomaly(ta, relative);
 }