////////////////////////////////////////////////////////////////////////////// // Returns the mean anomaly in radians at given GMT. // At epoch, the mean anomaly is given by the elements data. double cOrbit::MeanAnomaly(cJulian gmt) const { double span = TPlusEpoch(gmt); double P = Period(); assert(P != 0.0); return fmod(MeanAnomaly() + (TWOPI * (span / P)), TWOPI); }
////////////////////////////////////////////////////////////////////////////// // Returns the mean anomaly in radians at given GMT. // At epoch, the mean anomaly is given by the elements data. double QTle::MeanAnomaly(QSgp4Date gmt) { double span = TPlusEpoch(gmt); double P = Period(); assert(P != 0.0); return fmod(MeanAnomaly() + (TWOPI * (span / P)), TWOPI); }