Пример #1
0
        public void EarthPositionTest()
        {
            OrbitingBodyMathematics earth = OrbitingBodyMathematics.generate_earth();
            var test_time = new DateTime(2016, 2, 10);

            PositionTest(earth, test_time, 140.65, 0.0, 0.987);
        }
Пример #2
0
        public void MoonOrbitalPeriodTest()
        {
            OrbitingBodyMathematics earth = OrbitingBodyMathematics.generate_earth();
            OrbitingBodyMathematics moon  = OrbitingBodyMathematics.generate_moon(earth);

            OrbitalPeriodTest(27.3217, moon);
        }
Пример #3
0
        public void EarthEccentricAnomalyTest()
        {
            OrbitingBodyMathematics earth = OrbitingBodyMathematics.generate_earth();
            var test_time = new DateTime(2016, 2, 10, 13, 25, 00);

            EccentricAnomalyTest(0.6705, test_time, earth);
        }
Пример #4
0
        public void EarthMeanAnomalyTest2()
        {
            OrbitingBodyMathematics earth = OrbitingBodyMathematics.generate_earth();
            var test_time = new DateTime(2016, 2, 10, 9, 54, 00);

            MeanAnomalyTest(0.6577, test_time, earth);
        }
Пример #5
0
        public void EarthMeanAnomalyTest1()
        {
            OrbitingBodyMathematics earth = OrbitingBodyMathematics.generate_earth();
            var test_time = new DateTime(2016, 2, 9, 14, 49, 00);

            MeanAnomalyTest(0.6441, test_time, earth);
        }
Пример #6
0
        public void MoonEccentricAnomalyTest()
        {
            OrbitingBodyMathematics earth = OrbitingBodyMathematics.generate_earth();
            OrbitingBodyMathematics moon  = OrbitingBodyMathematics.generate_moon(earth);
            var test_time = new DateTime(2016, 2, 23, 10, 30, 00);

            EccentricAnomalyTest(2.768, test_time, moon);
        }
Пример #7
0
        public void MoonMeanAnomalyTest()
        {
            OrbitingBodyMathematics earth = OrbitingBodyMathematics.generate_earth();
            OrbitingBodyMathematics moon  = OrbitingBodyMathematics.generate_moon(earth);
            var test_time = new DateTime(2016, 2, 23, 10, 28, 00);

            MeanAnomalyTest(2.747, test_time, moon);
        }
Пример #8
0
        public void MoonPositionTest()
        {
            OrbitingBodyMathematics earth = OrbitingBodyMathematics.generate_earth();
            OrbitingBodyMathematics moon  = OrbitingBodyMathematics.generate_moon(earth);
            var test_time = new DateTime(2016, 2, 10);

            // TODO: Get geo-centric coordinates
            PositionTest(earth, test_time, 140.65, 0.0, 0.987);
        }
Пример #9
0
        public void EarthRotationRelativeToSunTestEighteen()
        {
            OrbitingBodyMathematics earth
                = OrbitingBodyMathematics.generate_earth();
            var today     = DateTime.Now;
            var test_time = new DateTime(
                today.Year, today.Month, today.Day, 18, 0, 0
                );

            RotationRelativeToSunTest(90, test_time, earth);
        }
Пример #10
0
        public void EarthRotationTestNoon()
        {
            OrbitingBodyMathematics earth
                = OrbitingBodyMathematics.generate_earth();
            var today     = DateTime.Now;
            var test_time = new DateTime(
                today.Year, today.Month, today.Day, 12, 0, 0
                );

            RotationAbsoluteTest(0.0, test_time, earth);
        }
Пример #11
0
        public void EarthCompoundPositionTest()
        {
            OrbitingBodyMathematics Earth = OrbitingBodyMathematics.generate_earth();

            CompoundPositionTester[] Tests =
            {
                new CompoundPositionTester(new DateTime(2012,  7, 21), 298.62, 0, 1.016),
                new CompoundPositionTester(new DateTime(2012,  4,  6), 196.58, 0, 1.001),
                new CompoundPositionTester(new DateTime(2012,  7,  8), 286.22, 0, 1.017),
                new CompoundPositionTester(new DateTime(2012,  9, 23), 360.35, 0, 1.003),
                new CompoundPositionTester(new DateTime(2012,  2, 14), 144.67, 0, 0.987),
                new CompoundPositionTester(new DateTime(2012, 11, 25),   63.1, 0, 0.987),
                new CompoundPositionTester(new DateTime(2012,  3, 14), 173.79, 0, 0.994),
                new CompoundPositionTester(new DateTime(2012, 12, 22),  90.52, 0, 0.984),
                new CompoundPositionTester(new DateTime(2012,  6,  9), 258.55, 0, 1.015),
                new CompoundPositionTester(new DateTime(2012, 12, 16),  84.41, 0, 0.984)
            };
            CompoundPositionTest(Earth, Tests);
        }
Пример #12
0
        public void EarthOrbitalPeriodTest()
        {
            OrbitingBodyMathematics earth = OrbitingBodyMathematics.generate_earth();

            OrbitalPeriodTest(365.25636, earth);
        }