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

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • routing
  • instructions
RoutingPoint.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 2010 Dennis Nienhüser <earthwings@gentoo.org>
9 //
10 
11 #ifndef MARBLE_ROUTINGPOINT_H
12 #define MARBLE_ROUTINGPOINT_H
13 
14 #include "marble_export.h"
15 
16 #include <QTextStream>
17 
18 namespace Marble
19 {
20 
24 class MARBLE_EXPORT RoutingPoint
25 {
26 public:
27  explicit RoutingPoint( qreal lon = 0.0, qreal lat = 0.0 );
28 
30  qreal lon() const;
31 
33  qreal lat() const;
34 
40  qreal bearing( const RoutingPoint &other ) const;
41 
47  qreal distance( const RoutingPoint &other ) const;
48 
49 private:
50  qreal m_lon;
51 
52  qreal m_lonRad;
53 
54  qreal m_lat;
55 
56  qreal m_latRad;
57 };
58 
59 QTextStream& operator<<( QTextStream& stream, const RoutingPoint &i );
60 
61 } // namespace Marble
62 
63 #endif // MARBLE_ROUTINGPOINT_H
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
marble_export.h
Marble::RoutingPoint
There are many Point classes, but this is mine.
Definition: RoutingPoint.h:24
Marble::operator<<
QTextStream & operator<<(QTextStream &stream, const RoutingInstruction &i)
Definition: RoutingInstruction.cpp:455
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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