示例#1
0
文件: cOrbit.cpp 项目: ralfberge/git
//////////////////////////////////////////////////////////////////////////////
// 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);
}
示例#2
0
//////////////////////////////////////////////////////////////////////////////
// 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);
}