예제 #1
0
    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";
    }
예제 #2
0
 public override double GetEclipticLatitude(double JD)
 {
     return(AASJupiter.EclipticLatitude(JD));
 }
예제 #3
0
        public void EclipticLatitudeTest(double JD, bool bHighPrecision, double expectedEclipticLatitude)
        {
            double eclipticLatitude = AASJupiter.EclipticLatitude(JD, bHighPrecision);

            Assert.Equal(expectedEclipticLatitude, eclipticLatitude);
        }