Kstars

planetmoons.cpp
1 /*
2  SPDX-FileCopyrightText: Vipul Kumar Singh <[email protected]>
3  SPDX-FileCopyrightText: Médéric Boquien <[email protected]>
4 
5  SPDX-License-Identifier: GPL-2.0-or-later
6 */
7 
8 #include "planetmoons.h"
9 
10 #include "ksnumbers.h"
11 #include "ksplanetbase.h"
12 #include "kssun.h"
13 #include "trailobject.h"
14 
15 #include <QDebug>
16 
18 {
19  qDeleteAll(Moon);
20 }
21 
23 {
24  return Moon[id]->translatedName();
25 }
26 
27 void PlanetMoons::EquatorialToHorizontal(const dms *LST, const dms *lat)
28 {
29  int nmoons = nMoons();
30 
31  for (int i = 0; i < nmoons; ++i)
32  moon(i)->EquatorialToHorizontal(LST, lat);
33 }
void EquatorialToHorizontal(const CachingDms *LST, const CachingDms *lat)
Determine the (Altitude, Azimuth) coordinates of the SkyPoint from its (RA, Dec) coordinates,...
Definition: skypoint.cpp:77
TrailObject * moon(int id)
Definition: planetmoons.h:45
QString name(int id) const
Definition: planetmoons.cpp:22
virtual ~PlanetMoons()
Destructor.
Definition: planetmoons.cpp:17
An angle, stored as degrees, but expressible in many ways.
Definition: dms.h:37
int nMoons() const
Definition: planetmoons.h:107
void EquatorialToHorizontal(const dms *LSTh, const dms *lat)
Convert the RA,Dec coordinates of each moon to Az,Alt.
Definition: planetmoons.cpp:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.