Esempio n. 1
0
    public void CreateMercury()
    {
        float   x       = Mathf.Cos((float)AASMercury.EclipticLatitude(JDNConv.getJulianDayNumberToday(), true)) * Mathf.Cos((float)AASMercury.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true));
        float   y       = Mathf.Sin((float)AASMercury.EclipticLatitude(JDNConv.getJulianDayNumberToday(), true)) * Mathf.Cos((float)AASMercury.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true));
        float   z       = Mathf.Sin((float)AASMercury.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true));
        Vector3 forward = new Vector3(x, y, z) * getDistMercury();

        Mercury = Instantiate(sphere, forward, Sun.transform.rotation);
        Mercury.transform.localScale = Vector3.one * .0048794f;
        Mercury.name = "Mercury";
    }
Esempio n. 2
0
 public override double GetEclipticLongitude(double JD)
 {
     return(AASMercury.EclipticLongitude(JD));
 }
Esempio n. 3
0
        public void EclipticLongitudeTest(double JD, bool bHighPrecision, double expectedLongitude)
        {
            double longitude = AASMercury.EclipticLongitude(JD, bHighPrecision);

            Assert.Equal(expectedLongitude, longitude);
        }