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); }
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); }