コード例 #1
0
ファイル: OrbitTest.cs プロジェクト: thothrex/SpaceBattles
        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
ファイル: OrbitTest.cs プロジェクト: thothrex/SpaceBattles
        public void MoonOrbitalPeriodTest()
        {
            OrbitingBodyMathematics earth = OrbitingBodyMathematics.generate_earth();
            OrbitingBodyMathematics moon  = OrbitingBodyMathematics.generate_moon(earth);

            OrbitalPeriodTest(27.3217, moon);
        }
コード例 #3
0
ファイル: OrbitTest.cs プロジェクト: thothrex/SpaceBattles
        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
ファイル: OrbitTest.cs プロジェクト: thothrex/SpaceBattles
        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
ファイル: OrbitTest.cs プロジェクト: thothrex/SpaceBattles
        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
ファイル: OrbitTest.cs プロジェクト: thothrex/SpaceBattles
        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
ファイル: OrbitTest.cs プロジェクト: thothrex/SpaceBattles
        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
ファイル: OrbitTest.cs プロジェクト: thothrex/SpaceBattles
        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
ファイル: OrbitTest.cs プロジェクト: thothrex/SpaceBattles
        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
ファイル: OrbitTest.cs プロジェクト: thothrex/SpaceBattles
        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
ファイル: OrbitTest.cs プロジェクト: thothrex/SpaceBattles
        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
ファイル: OrbitTest.cs プロジェクト: thothrex/SpaceBattles
        public void EarthOrbitalPeriodTest()
        {
            OrbitingBodyMathematics earth = OrbitingBodyMathematics.generate_earth();

            OrbitalPeriodTest(365.25636, earth);
        }