// 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)); } }
public override double GetDistance() { return(AASJupiter.RadiusVector(jdeCorrected)); }
protected override double GetRadiusVector(double JD) { return(AASJupiter.RadiusVector(JD)); }
public void RadiusVectorTest(double JD, bool bHighPrecision, double expectedRadiusVector) { double radiusVector = AASJupiter.RadiusVector(JD, bHighPrecision); Assert.Equal(expectedRadiusVector, radiusVector); }
public float getDistJupiter() { float ret = distanceFactor * (float)AASJupiter.RadiusVector(JDNConv.getJulianDayNumberToday(), true); return(ret); }