Marble::RoutingPoint

Search for usage in LXR

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

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 33 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 43 of file RoutingPoint.cpp.

◆ lat()

qreal Marble::RoutingPoint::lat ( ) const

Latitude of the point.

Definition at line 27 of file RoutingPoint.cpp.

◆ lon()

qreal Marble::RoutingPoint::lon ( ) const

Longitude of the point.

Definition at line 22 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-2022 The KDE developers.
Generated on Sun Nov 27 2022 03:55:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.