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"; }
public override double GetDistance() { return(AASUranus.RadiusVector(jdeCorrected)); }
protected override double GetRadiusVector(double JD) { return(AASUranus.RadiusVector(JD)); }
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); }
public float getDistUranus() { float ret = distanceFactor * (float)AASUranus.RadiusVector(JDNConv.getJulianDayNumberToday(), true); return(ret); }