

Private Member Functions | |
| Point3d | computePosition (double jd) const |
| double | getBoundingRadius () const |
| double | getPeriod () const |
|
|
Implements CachingOrbit. Definition at line 1232 of file customorbit.cpp. References computePlanetCoords(), computePlanetElements(), cos(), degToRad(), distance(), gPlanetElements, PI, and sin(). 01233 {
01234 const int p = 7; //Planet 7
01235 vector<int> pList(1, p);
01236 double t, map;
01237 double dl, dr, dml, ds, dm, da, dhl;
01238 double eclLong, eclLat, distance; //heliocentric longitude, latitude, distance
01239
01240 dl = dr = dml = ds = dm = da = dhl = 0.0;
01241
01242 //Calculate the Julian centuries elapsed since 1900
01243 t = (jd - 2415020.0)/36525.0;
01244
01245 computePlanetElements(t, pList);
01246
01247 map = degToRad(gPlanetElements[p][0] - gPlanetElements[p][2]);
01248
01249 computePlanetCoords(p, map, da, dhl, dl, dm, dml, dr, ds,
01250 eclLong, eclLat, distance);
01251
01252 //Corrections for internal coordinate system
01253 eclLat -= PI / 2;
01254 eclLong += PI;
01255
01256 return Point3d(cos(eclLong) * sin(eclLat) * distance,
01257 cos(eclLat) * distance,
01258 -sin(eclLong) * sin(eclLat) * distance);
01259 };
|
|
|
Implements CachingOrbit. Definition at line 1266 of file customorbit.cpp. References BoundingRadiusSlack. 01267 {
01268 return 7.38e+9 * BoundingRadiusSlack;
01269 };
|
|
|
Implements CachingOrbit. Definition at line 1261 of file customorbit.cpp. 01262 {
01263 return 90779.235;
01264 };
|
1.4.1