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