Marble
GeoDataLinearRing.cpp
98 area += (operator[](i).longitude() - operator[](i - 1).longitude()) * (operator[](i).latitude() + operator[](i - 1).latitude());
100 area += (operator[](0).longitude() - operator[](n - 1).longitude()) * (operator[](0).latitude() + operator[](n - 1).latitude());
qreal sphericalDistanceTo(const GeoDataCoordinates &other) const
This method calculates the shortest distance between two points on a sphere.
Definition GeoDataCoordinates.cpp:861
A LineString that allows to store a contiguous set of line segments.
Definition GeoDataLineString.h:66
GeoDataCoordinates & first()
Returns a reference to the first node in the LineString. This method detaches the returned coordinate...
Definition GeoDataLineString.cpp:334
const GeoDataLatLonAltBox & latLonAltBox() const override
Returns the smallest latLonAltBox that contains the LineString.
Definition GeoDataLineString.cpp:786
bool operator==(const GeoDataLineString &other) const
Returns true/false depending on whether this and other are/are not equal.
Definition GeoDataLineString.cpp:471
GeoDataCoordinates & operator[](int pos)
Returns a reference to the coordinates of a node at a given position. This method detaches the return...
Definition GeoDataLineString.cpp:296
virtual qreal length(qreal planetRadius, int offset=0) const
Returns the length of LineString across a sphere starting from a coordinate in LineString This method...
Definition GeoDataLineString.cpp:802
GeoDataCoordinates & last()
Returns a reference to the last node in the LineString. This method detaches the returned coordinate ...
Definition GeoDataLineString.cpp:324
A LinearRing that allows to store a closed, contiguous set of line segments.
Definition GeoDataLinearRing.h:60
const char * nodeType() const override
Provides type information for downcasting a GeoNode.
Definition GeoDataLinearRing.cpp:27
bool isClosed() const override
Returns whether a LinearRing is a closed polygon.
Definition GeoDataLinearRing.cpp:52
virtual bool isClockwise() const
Returns whether the orientaion of ring is coloskwise or not.
Definition GeoDataLinearRing.cpp:93
virtual bool contains(const GeoDataCoordinates &coordinates) const
Returns whether the given coordinates lie within the polygon.
Definition GeoDataLinearRing.cpp:64
bool operator==(const GeoDataLinearRing &other) const
Returns true/false depending on whether this and other are/are not equal.
Definition GeoDataLinearRing.cpp:42
GeoDataLinearRing(TessellationFlags f=NoTessellation)
Creates a new LinearRing.
Definition GeoDataLinearRing.cpp:15
qreal length(qreal planetRadius, int offset=0) const override
Returns the length of the LinearRing across a sphere.
Definition GeoDataLinearRing.cpp:57
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.