• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • astro
astr2lib.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2013 Gerhard Holtkamp
9 //
10 
11 #if !defined(__astr2lib_h)
12 #define __astr2lib_h
13 
14 #include "attlib.h"
15 #include "astrolib_export.h"
16 
17 /***********************************************************************
18  Definitions of Astr2lib Functions
19 
20 
21  Author: Gerhard HOLTKAMP 21-MAY-2000
22  ***********************************************************************/
23 
24 class ASTROLIB_EXPORT Plan200 // Calculating the Planets in epoch J2000.0 coordinates
25  {
26  public:
27  Plan200();
28  Vec3 velocity() const; // return last calculated planet velocity
29  void state (Vec3& rs, Vec3& vs) const; // return last state vector
30  Vec3 Mercury (double t); // position of Mercury at time t
31  Vec3 Venus (double t); // position of Venus at time t
32  Vec3 Mars (double t); // position of Mars at time t
33  Vec3 Jupiter (double t); // position of Jupiter at time t
34  Vec3 Saturn (double t); // position of Saturn at time t
35  Vec3 Uranus (double t); // position of Uranus at time t
36  Vec3 Neptune (double t); // position of Neptune at time t
37  Vec3 Pluto (double t); // position of Pluto at time t
38 
39  private:
40  double c3[19], s3[19];
41  double c[11], s[11];
42  double m1, m2, m3, m4, m5, m6, m7, m8;
43  double tt;
44  double u, v, dl, dr, db, l, b, r;
45  Vec3 rp, vp; // state vector of planet
46 
47  static void addthe (double c1, double s1, double c2, double s2,
48  double& cc, double& ss);
49  void term (int i1, int i, int it, double dlc, double dls, double drc,
50  double drs, double dbc, double dbs);
51  void posvel ();
52  };
53 
54  ASTROLIB_EXPORT void MarPhobos (double t, Vec3& rs, Vec3& vs); // State vector of Phobos
55  ASTROLIB_EXPORT void MarDeimos (double t, Vec3& rs, Vec3& vs); // State vector of Deimos
56  ASTROLIB_EXPORT Vec3 PosJIo (double t); // Position of Io
57  ASTROLIB_EXPORT Vec3 PosEuropa (double t); // Position of Europa
58  ASTROLIB_EXPORT Vec3 PosGanymede (double t); // Position of Ganymede
59  ASTROLIB_EXPORT Vec3 PosCallisto (double t); // Position of Callisto
60  ASTROLIB_EXPORT void JupIo (double t, Vec3& rs, Vec3& vs); // state vector of Io
61  ASTROLIB_EXPORT void JupEuropa (double t, Vec3& rs, Vec3& vs); // state vector of Europa
62  ASTROLIB_EXPORT void JupGanymede (double t, Vec3& rs, Vec3& vs); // state vector of Ganymede
63  ASTROLIB_EXPORT void JupCallisto (double t, Vec3& rs, Vec3& vs); // state vector of Callisto
64  ASTROLIB_EXPORT void SatRhea (double t, Vec3& rs, Vec3& vs); // state vector of Rhea
65  ASTROLIB_EXPORT void SatTitan (double t, Vec3& rs, Vec3& vs); // state vector of Titan
66  ASTROLIB_EXPORT void NepTriton (double t, Vec3& rs, Vec3& vs); // state vector of Triton
67  ASTROLIB_EXPORT void PluCharon (double t, Vec3& rs, Vec3& vs); // state vector of Charon
68 
69 #endif // __astr2lib_h sentry.
70 
JupEuropa
ASTROLIB_EXPORT void JupEuropa(double t, Vec3 &rs, Vec3 &vs)
Definition: astr2lib.cpp:1530
Vec3
Definition: attlib.h:27
JupIo
ASTROLIB_EXPORT void JupIo(double t, Vec3 &rs, Vec3 &vs)
Definition: astr2lib.cpp:1507
MarDeimos
ASTROLIB_EXPORT void MarDeimos(double t, Vec3 &rs, Vec3 &vs)
Definition: astr2lib.cpp:1119
ASTROLIB_EXPORT
#define ASTROLIB_EXPORT
Definition: astrolib_export.h:20
PosEuropa
ASTROLIB_EXPORT Vec3 PosEuropa(double t)
Definition: astr2lib.cpp:1261
attlib.h
JupGanymede
ASTROLIB_EXPORT void JupGanymede(double t, Vec3 &rs, Vec3 &vs)
Definition: astr2lib.cpp:1553
PosCallisto
ASTROLIB_EXPORT Vec3 PosCallisto(double t)
Definition: astr2lib.cpp:1424
SatRhea
ASTROLIB_EXPORT void SatRhea(double t, Vec3 &rs, Vec3 &vs)
Definition: astr2lib.cpp:1600
PluCharon
ASTROLIB_EXPORT void PluCharon(double t, Vec3 &rs, Vec3 &vs)
Definition: astr2lib.cpp:1838
JupCallisto
ASTROLIB_EXPORT void JupCallisto(double t, Vec3 &rs, Vec3 &vs)
Definition: astr2lib.cpp:1576
astrolib_export.h
MarPhobos
ASTROLIB_EXPORT void MarPhobos(double t, Vec3 &rs, Vec3 &vs)
Definition: astr2lib.cpp:1049
NepTriton
ASTROLIB_EXPORT void NepTriton(double t, Vec3 &rs, Vec3 &vs)
Definition: astr2lib.cpp:1768
SatTitan
ASTROLIB_EXPORT void SatTitan(double t, Vec3 &rs, Vec3 &vs)
Definition: astr2lib.cpp:1677
PosJIo
ASTROLIB_EXPORT Vec3 PosJIo(double t)
Definition: astr2lib.cpp:1190
Plan200
Definition: astr2lib.h:24
PosGanymede
ASTROLIB_EXPORT Vec3 PosGanymede(double t)
Definition: astr2lib.cpp:1341
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal