Kstars

planetmoons.cpp
1/*
2 SPDX-FileCopyrightText: Vipul Kumar Singh <vipulkrsingh@gmail.com>
3 SPDX-FileCopyrightText: Médéric Boquien <mboquien@free.fr>
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
21
23{
24 return Moon[id]->translatedName();
25}
26
27void 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}
int nMoons() const
TrailObject * moon(int id)
Definition planetmoons.h:45
virtual ~PlanetMoons()
Destructor.
void EquatorialToHorizontal(const dms *LSTh, const dms *lat)
Convert the RA,Dec coordinates of each moon to Az,Alt.
QString name(int id) const
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
An angle, stored as degrees, but expressible in many ways.
Definition dms.h:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:48:27 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.