Marble
Coordinate.cpp
108 if (GeoDataCoordinates::defaultNotation() == static_cast<GeoDataCoordinates::Notation>(defaultNotation))
110 GeoDataCoordinates::setDefaultNotation(static_cast<GeoDataCoordinates::Notation>(defaultNotation));
Represents a coordinate with the properties of a name and coordinates.
Definition Coordinate.h:19
Q_INVOKABLE qreal bearing(qreal longitude, qreal latitude) const
Bearing (in degree) to the given coordinate.
Definition Coordinate.cpp:83
Coordinate(qreal lon=0.0, qreal lat=0.0, qreal altitude=0.0, QObject *parent=nullptr)
Constructor.
Definition Coordinate.cpp:15
Marble::GeoDataCoordinates coordinates() const
Change the altitude of the coordinate.
Definition Coordinate.cpp:61
void setCoordinates(const Marble::GeoDataCoordinates &coordinates)
Change all coordinates at once.
Definition Coordinate.cpp:66
Q_INVOKABLE qreal distance(qreal longitude, qreal latitude) const
Distance (in meter) to the given coordinate.
Definition Coordinate.cpp:76
static void setDefaultNotation(GeoDataCoordinates::Notation notation)
set the Notation of the string representation
Definition GeoDataCoordinates.cpp:232
static GeoDataCoordinates::Notation defaultNotation()
return Notation of string representation
Definition GeoDataCoordinates.cpp:226
qreal sphericalDistanceTo(const GeoDataCoordinates &other) const
This method calculates the shortest distance between two points on a sphere.
Definition GeoDataCoordinates.cpp:861
QString toString() const
return a string representation of the coordinate this is a convenience function which uses the defaul...
Definition GeoDataCoordinates.cpp:379
QObject(QObject *parent)
Q_EMITQ_EMIT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:08 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:08 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.