Marble::RoutingPoint
#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 21 of file RoutingPoint.h.
Constructor & Destructor Documentation
◆ RoutingPoint()
|
explicit |
Definition at line 15 of file RoutingPoint.cpp.
Member Function Documentation
◆ bearing()
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 https://www.movable-type.co.uk/scripts/latlong.html
Definition at line 35 of file RoutingPoint.cpp.
◆ distance()
qreal Marble::RoutingPoint::distance | ( | const RoutingPoint & | other | ) | const |
Calculates the distance in meter between this point and the given other point.
Code based on https://www.movable-type.co.uk/scripts/latlong.html
Definition at line 44 of file RoutingPoint.cpp.
◆ lat()
qreal Marble::RoutingPoint::lat | ( | ) | const |
Latitude of the point.
Definition at line 29 of file RoutingPoint.cpp.
◆ lon()
qreal Marble::RoutingPoint::lon | ( | ) | const |
Longitude of the point.
Definition at line 24 of file RoutingPoint.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:52:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.