Kstars

site.cpp
1 /*
2  SPDX-FileCopyrightText: 2009 Prakash Mohan <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #include "oal/site.h"
8 
9 void OAL::Site::setSite(const QString &_id, const QString &_name, double _lat, const QString &_latUnit, double _lon,
10  const QString &_lonUnit)
11 {
12  m_Id = _id;
13  m_Name = _name;
14  m_Lat = _lat;
15  m_Lon = _lon;
16  m_LatUnit = _latUnit;
17  m_LonUnit = _lonUnit;
18 }
19 void OAL::Site::setSite(GeoLocation *geo, const QString &id)
20 {
21  m_Id = id;
22  m_Name = geo->name();
23  m_Lat = geo->lat()->radians();
24  m_Lon = geo->lng()->radians();
25  m_LatUnit = m_LonUnit = "rad";
26 }
GeoCoordinates geo(const QVariant &location)
Relevant data about an observing location on Earth.
Definition: geolocation.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 15 2022 04:04:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.