예제 #1
0
        public static double ApparentEclipticLongitude(double julianDate, bool highPrecision)
        {
            var longitude = ConvertLongitudeToFK5(julianDate, highPrecision)
                            + CoordinateTransformation.SetDMSToDegrees(0, 0, Nutation.NutationInLongitude(julianDate));

            var radius = Earth.GetSunRadiusVector(julianDate);

            return((highPrecision)
                ? longitude - (0.005775518 * radius * CoordinateTransformation.SetDMSToDegrees(0, 0, GetVariationEclipticLongitude(julianDate)))
                : longitude - CoordinateTransformation.SetDMSToDegrees(0, 0, 20.4898 / radius));
        }