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