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

marble

  • Marble
  • RoutingPoint
Public Member Functions | List of all members
Marble::RoutingPoint Class Reference

#include <RoutingPoint.h>

Public Member Functions

 RoutingPoint (qreal lon=0.0, qreal lat=0.0)
 
qreal bearing (const RoutingPoint &other) const
 
qreal distance (const RoutingPoint &other) const
 
qreal lat () const
 
qreal lon () const
 

Detailed Description

There are many Point classes, but this is mine.

Definition at line 24 of file RoutingPoint.h.

Constructor & Destructor Documentation

Marble::RoutingPoint::RoutingPoint ( qreal  lon = 0.0,
qreal  lat = 0.0 
)
explicit

Definition at line 18 of file RoutingPoint.cpp.

Member Function Documentation

qreal Marble::RoutingPoint::bearing ( const RoutingPoint &  other) const

Calculates the bearing of the line defined by this point and the given other point.

Code based on http://www.movable-type.co.uk/scripts/latlong.html

Definition at line 36 of file RoutingPoint.cpp.

qreal Marble::RoutingPoint::distance ( const RoutingPoint &  other) const

Calculates the distance in meter between this point and the given other point.

Code based on http://www.movable-type.co.uk/scripts/latlong.html

Definition at line 46 of file RoutingPoint.cpp.

qreal Marble::RoutingPoint::lat ( ) const

Latitude of the point.

Definition at line 30 of file RoutingPoint.cpp.

qreal Marble::RoutingPoint::lon ( ) const

Longitude of the point.

Definition at line 25 of file RoutingPoint.cpp.


The documentation for this class was generated from the following files:
  • RoutingPoint.h
  • RoutingPoint.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:57 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