示例#1
0
    public void CreateUranus()
    {
        float   x       = Mathf.Cos((float)AASUranus.EclipticLatitude(JDNConv.getJulianDayNumberToday(), true)) * Mathf.Cos((float)AASUranus.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true));
        float   y       = Mathf.Sin((float)AASUranus.EclipticLatitude(JDNConv.getJulianDayNumberToday(), true)) * Mathf.Cos((float)AASUranus.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true));
        float   z       = Mathf.Sin((float)AASUranus.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true));
        Vector3 forward = new Vector3(x, y, z) * getDistUranus();

        Uranus = Instantiate(sphere, forward, Sun.transform.rotation);
        Uranus.transform.localScale = Vector3.one * .050724f;
        Uranus.name = "Uranus";
    }
示例#2
0
 public override double GetDistance()
 {
     return(AASUranus.RadiusVector(jdeCorrected));
 }
示例#3
0
 protected override double GetRadiusVector(double JD)
 {
     return(AASUranus.RadiusVector(JD));
 }
示例#4
0
 public override double GetEclipticLatitude(double JD)
 {
     return(AASUranus.EclipticLatitude(JD));
 }
        public void EclipticLongitudeTest(double JD, bool bHighPrecision, double expectedLongitude)
        {
            double longitude = AASUranus.EclipticLongitude(JD, bHighPrecision);

            Assert.Equal(expectedLongitude, longitude);
        }
        public void RadiusVectorTest(double JD, bool bHighPrecision, double expectedRadiusVector)
        {
            double radiusVector = AASUranus.RadiusVector(JD, bHighPrecision);

            Assert.Equal(expectedRadiusVector, radiusVector);
        }
示例#7
0
    public float getDistUranus()
    {
        float ret = distanceFactor * (float)AASUranus.RadiusVector(JDNConv.getJulianDayNumberToday(), true);

        return(ret);
    }