Esempio n. 1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown("p"))
     {
         Debug.Log("creating planets");
         CreatePlanets();
         lookAtSun();
         Debug.Log("Earth: " + AASEarth.RadiusVector(JDNConv.getJulianDayNumberToday(), true));
         Debug.Log("Mercury: " + AASMercury.RadiusVector(JDNConv.getJulianDayNumberToday(), true));
         Debug.Log("Jupiter: " + AASJupiter.RadiusVector(JDNConv.getJulianDayNumberToday(), true));
         Debug.Log("Distance between sun and pluto: " + Vector3.Distance(Sun.transform.position, Pluto.transform.position));
     }
 }
Esempio n. 2
0
 public override double GetDistance()
 {
     return(AASMercury.RadiusVector(jdeCorrected));
 }
Esempio n. 3
0
 protected override double GetRadiusVector(double JD)
 {
     return(AASMercury.RadiusVector(JD));
 }
Esempio n. 4
0
        public void RadiusVectorTest(double JD, bool bHighPrecision, double expectedRadiusVector)
        {
            double radiusVector = AASMercury.RadiusVector(JD, bHighPrecision);

            Assert.Equal(expectedRadiusVector, radiusVector);
        }
Esempio n. 5
0
    public float getDistMercury()
    {
        float ret = distanceFactor * (float)AASMercury.RadiusVector(JDNConv.getJulianDayNumberToday(), true);

        return(ret);
    }