public void CreatePluto() { float x = Mathf.Cos((float)AASPluto.EclipticLatitude(JDNConv.getJulianDayNumberToday())) * Mathf.Cos((float)AASPluto.EclipticLongitude(JDNConv.getJulianDayNumberToday())); float y = Mathf.Sin((float)AASPluto.EclipticLatitude(JDNConv.getJulianDayNumberToday())) * Mathf.Cos((float)AASPluto.EclipticLongitude(JDNConv.getJulianDayNumberToday())); float z = Mathf.Sin((float)AASPluto.EclipticLongitude(JDNConv.getJulianDayNumberToday())); Vector3 forward = new Vector3(x, y, z) * getDistPluto(); Pluto = Instantiate(sphere, forward, Sun.transform.rotation); Pluto.transform.localScale = Vector3.one * .0023766f; Pluto.name = "Pluto"; }
public void EclipticLongitudeTest(double JD, double expectedLongitude) { double longitude = AASPluto.EclipticLongitude(JD); Assert.Equal(expectedLongitude, longitude); }