public void CreateJupiter() { float x = Mathf.Cos((float)AASJupiter.EclipticLatitude(JDNConv.getJulianDayNumberToday(), true)) * Mathf.Cos((float)AASJupiter.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true)); float y = Mathf.Sin((float)AASJupiter.EclipticLatitude(JDNConv.getJulianDayNumberToday(), true)) * Mathf.Cos((float)AASJupiter.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true)); float z = Mathf.Sin((float)AASJupiter.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true)); Vector3 forward = new Vector3(x, y, z) * getDistJupiter(); Jupiter = Instantiate(sphere, forward, Sun.transform.rotation); Jupiter.transform.localScale = Vector3.one * .13982f; Jupiter.name = "Jupiter"; }
public override double GetEclipticLatitude(double JD) { return(AASJupiter.EclipticLatitude(JD)); }
public void EclipticLatitudeTest(double JD, bool bHighPrecision, double expectedEclipticLatitude) { double eclipticLatitude = AASJupiter.EclipticLatitude(JD, bHighPrecision); Assert.Equal(expectedEclipticLatitude, eclipticLatitude); }