Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

PlutoOrbit Class Reference

Inheritance diagram for PlutoOrbit:

Inheritance graph
Collaboration diagram for PlutoOrbit:

Collaboration graph
List of all members.

Private Member Functions

Point3d computePosition (double jd) const
double getBoundingRadius () const
double getPeriod () const

Member Function Documentation

Point3d PlutoOrbit::computePosition double  jd  )  const [inline, private, virtual]
 

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     };

double PlutoOrbit::getBoundingRadius  )  const [inline, private, virtual]
 

Implements CachingOrbit.

Definition at line 1266 of file customorbit.cpp.

References BoundingRadiusSlack.

01267     {
01268         return 7.38e+9 * BoundingRadiusSlack;
01269     };

double PlutoOrbit::getPeriod  )  const [inline, private, virtual]
 

Implements CachingOrbit.

Definition at line 1261 of file customorbit.cpp.

01262     {
01263         return 90779.235;
01264     };


The documentation for this class was generated from the following file:
Generated on Sat Jan 14 22:33:31 2006 for Celestia by  doxygen 1.4.1