コード例 #1
0
    public void CreateNeptune()
    {
        float   x       = Mathf.Cos((float)AASNeptune.EclipticLatitude(JDNConv.getJulianDayNumberToday(), true)) * Mathf.Cos((float)AASNeptune.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true));
        float   y       = Mathf.Sin((float)AASNeptune.EclipticLatitude(JDNConv.getJulianDayNumberToday(), true)) * Mathf.Cos((float)AASNeptune.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true));
        float   z       = Mathf.Sin((float)AASNeptune.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true));
        Vector3 forward = new Vector3(x, y, z) * getDistNeptune();

        Neptune = Instantiate(sphere, forward, Sun.transform.rotation);
        Neptune.transform.localScale = Vector3.one * .049244f;
        Neptune.name = "Neptune";
    }
コード例 #2
0
        public void EclipticLatitudeTest(double JD, bool bHighPrecision, double expectedEclipticLatitude)
        {
            double eclipticLatitude = AASNeptune.EclipticLatitude(JD, bHighPrecision);

            Assert.Equal(expectedEclipticLatitude, eclipticLatitude);
        }
コード例 #3
0
ファイル: NeptuneModel.cs プロジェクト: mymess/Planetarium
 public override double GetEclipticLatitude(double JD)
 {
     return(AASNeptune.EclipticLatitude(JD));
 }