コード例 #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));
     }
 }
コード例 #2
0
 public override double GetDistance()
 {
     return(AASJupiter.RadiusVector(jdeCorrected));
 }
コード例 #3
0
 protected override double GetRadiusVector(double JD)
 {
     return(AASJupiter.RadiusVector(JD));
 }
コード例 #4
0
        public void RadiusVectorTest(double JD, bool bHighPrecision, double expectedRadiusVector)
        {
            double radiusVector = AASJupiter.RadiusVector(JD, bHighPrecision);

            Assert.Equal(expectedRadiusVector, radiusVector);
        }
コード例 #5
0
    public float getDistJupiter()
    {
        float ret = distanceFactor * (float)AASJupiter.RadiusVector(JDNConv.getJulianDayNumberToday(), true);

        return(ret);
    }