Marble::RoutingPoint

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 26 of file RoutingPoint.h.

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 https://www.movable-type.co.uk/scripts/latlong.html

Definition at line 38 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 https://www.movable-type.co.uk/scripts/latlong.html

Definition at line 48 of file RoutingPoint.cpp.

qreal Marble::RoutingPoint::lat ( ) const

Latitude of the point.

Definition at line 32 of file RoutingPoint.cpp.

qreal Marble::RoutingPoint::lon ( ) const

Longitude of the point.

Definition at line 27 of file RoutingPoint.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Sep 21 2020 23:20:59 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.