コード例 #1
0
		public void Init()
		{
			currStatus = 0; 
			simulationDaysElapsed = 0;
			simulationCurrDate = new DateTime(2001,6,13,0,0,0,0); //Simulation starts with Earth and Mars in
																  //opposition.  This occurred on June 13, 2001

			showingSatellite = false; freeSpinning = false;
			bodyEarth = new CircularOrbitingBody(rEarth);
			bodyMars = new CircularOrbitingBody(rMars);
			bodySatellite = new EllipticalOrbitingBody((bodyEarth.SemiMajorAxis + bodyMars.SemiMajorAxis) / 2, (bodyMars.SemiMajorAxis - bodyEarth.SemiMajorAxis) / 2);
			satOrbitRect = new RectangleF(0, 0, 0, 0);
			satEventWatcher = new SignWatcher();
		}
コード例 #2
0
        public void Init()
        {
            currStatus            = 0;
            simulationDaysElapsed = 0;
            simulationCurrDate    = new DateTime(2001, 6, 13, 0, 0, 0, 0);    //Simulation starts with Earth and Mars in
            //opposition.  This occurred on June 13, 2001

            showingSatellite = false; freeSpinning = false;
            bodyEarth        = new CircularOrbitingBody(rEarth);
            bodyMars         = new CircularOrbitingBody(rMars);
            bodySatellite    = new EllipticalOrbitingBody((bodyEarth.SemiMajorAxis + bodyMars.SemiMajorAxis) / 2, (bodyMars.SemiMajorAxis - bodyEarth.SemiMajorAxis) / 2);
            satOrbitRect     = new RectangleF(0, 0, 0, 0);
            satEventWatcher  = new SignWatcher();
        }