Marble

RoutingPoint.h
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 2010 Dennis Nienhüser <[email protected]>
9 //
10 
11 #ifndef MARBLE_ROUTINGPOINT_H
12 #define MARBLE_ROUTINGPOINT_H
13 
14 #include "marble_export.h"
15 
16 #include <QtGlobal>
17 
18 class QTextStream;
19 
20 namespace Marble
21 {
22 
26 class MARBLE_EXPORT RoutingPoint
27 {
28 public:
29  explicit RoutingPoint( qreal lon = 0.0, qreal lat = 0.0 );
30 
32  qreal lon() const;
33 
35  qreal lat() const;
36 
42  qreal bearing( const RoutingPoint &other ) const;
43 
49  qreal distance( const RoutingPoint &other ) const;
50 
51 private:
52  qreal m_lon;
53 
54  qreal m_lonRad;
55 
56  qreal m_lat;
57 
58  qreal m_latRad;
59 };
60 
61 QTextStream& operator<<( QTextStream& stream, const RoutingPoint &i );
62 
63 } // namespace Marble
64 
65 #endif // MARBLE_ROUTINGPOINT_H
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
Binds a QML item to a specific geodetic location in screen coordinates.
There are many Point classes, but this is mine.
Definition: RoutingPoint.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Jun 5 2020 22:32:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.