Пример #1
0
    public void CreateVenus()
    {
        float   x       = Mathf.Cos((float)AASVenus.EclipticLatitude(JDNConv.getJulianDayNumberToday(), true)) * Mathf.Cos((float)AASVenus.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true));
        float   y       = Mathf.Sin((float)AASVenus.EclipticLatitude(JDNConv.getJulianDayNumberToday(), true)) * Mathf.Cos((float)AASVenus.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true));
        float   z       = Mathf.Sin((float)AASVenus.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true));
        Vector3 forward = new Vector3(x, y, z) * getDistVenus();

        Venus = Instantiate(sphere, forward, Sun.transform.rotation);
        Venus.transform.localScale = Vector3.one * .012104f;
        Venus.name = "Venus";
    }
Пример #2
0
 public override double GetEclipticLongitude(double JD)
 {
     return(AASVenus.EclipticLongitude(JD));
 }
        public void EclipticLongitudeTest(double JD, bool bHighPrecision, double expectedLongitude)
        {
            double longitude = AASVenus.EclipticLongitude(JD, bHighPrecision);

            Assert.Equal(expectedLongitude, longitude);
        }