public void CreateSaturn() { float x = Mathf.Cos((float)AASSaturn.EclipticLatitude(JDNConv.getJulianDayNumberToday(), true)) * Mathf.Cos((float)AASSaturn.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true)); float y = Mathf.Sin((float)AASSaturn.EclipticLatitude(JDNConv.getJulianDayNumberToday(), true)) * Mathf.Cos((float)AASSaturn.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true)); float z = Mathf.Sin((float)AASSaturn.EclipticLongitude(JDNConv.getJulianDayNumberToday(), true)); Vector3 forward = new Vector3(x, y, z) * getDistSaturn(); Saturn = Instantiate(sphere, forward, Sun.transform.rotation); Saturn.transform.localScale = Vector3.one * .11646f; Saturn.name = "Saturn"; }
public float getDistSaturn() { float ret = distanceFactor * (float)AASSaturn.RadiusVector(JDNConv.getJulianDayNumberToday(), true); return(ret); }
public void EclipticLongitudeTest(double JD, bool bHighPrecision, double expectedLongitude) { double longitude = AASSaturn.EclipticLongitude(JD, bHighPrecision); Assert.Equal(expectedLongitude, longitude); }
public void RadiusVectorTest(double JD, bool bHighPrecision, double expectedRadiusVector) { double radiusVector = AASSaturn.RadiusVector(JD, bHighPrecision); Assert.Equal(expectedRadiusVector, radiusVector); }
protected override double GetRadiusVector(double JD) { return(AASSaturn.RadiusVector(JD)); }
public override double GetEclipticLatitude(double JD) { return(AASSaturn.EclipticLatitude(JD)); }