Exemple #1
0
 /// <summary>
 ///     Compute sun's mean longitude for given J2000 epoch days and fraction.
 /// </summary>
 private static double ComputeSunMeanLongitude(double epochDaysFraction)
 {
     return(AngleMath.FixDegreesAngle(280.459 + (0.98564736 * epochDaysFraction)));
 }
Exemple #2
0
 /// <summary>
 ///     Compute sun's ecliptic longitude for given mean longitude and mean anomaly.
 /// </summary>
 private static double ComputeSunEclipticLongitude(double sunMeanLongitude, double sunMeanAnomaly)
 {
     return(AngleMath.FixDegreesAngle(sunMeanLongitude +
                                      (1.915 * AngleMath.SineOfDegree(sunMeanAnomaly)) +
                                      (0.02 * AngleMath.SineOfDegree(2.0 * sunMeanAnomaly))));
 }
Exemple #3
0
 /// <summary>
 ///     Compute sun's mean anomaly for given J2000 epoch days and fraction.
 /// </summary>
 private static double ComputeSunMeanAnomaly(double epochDaysFraction)
 {
     return(AngleMath.FixDegreesAngle(357.529 + (0.98560028 * epochDaysFraction)));
 }