Example #1
0
    public void CreateSaturn()
    {
        float   x       = Mathf.Cos((float)AASSaturn.EclipticLatitude(JDNConv.getJulianDayNumberToday(), true)) * Mathf.Cos((float)AASSaturn.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true));
        float   y       = Mathf.Sin((float)AASSaturn.EclipticLatitude(JDNConv.getJulianDayNumberToday(), true)) * Mathf.Cos((float)AASSaturn.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true));
        float   z       = Mathf.Sin((float)AASSaturn.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true));
        Vector3 forward = new Vector3(x, y, z) * getDistSaturn();

        Saturn = Instantiate(sphere, forward, Sun.transform.rotation);
        Saturn.transform.localScale = Vector3.one * .11646f;
        Saturn.name = "Saturn";
    }
        public void EclipticLongitudeTest(double JD, bool bHighPrecision, double expectedLongitude)
        {
            double longitude = AASSaturn.EclipticLongitude(JD, bHighPrecision);

            Assert.Equal(expectedLongitude, longitude);
        }
Example #3
0
 public override double GetEclipticLongitude(double JD)
 {
     return(AASSaturn.EclipticLongitude(JD));
 }