211 if (crossNorth && crossSouth) {
214 }
else if (crossNorth) {
217 }
else if (crossSouth) {
313 double lat =
d->m_center.latitude();
314 double lon =
d->m_center.longitude();
316 lat += degreesLatitude;
317 lon += degreesLongitude;
352 result.translate(degreesLatitude, degreesLongitude);
364 d->extendCircle(coordinate);
382 .arg(
center().longitude())
402 m_radius(
other.m_radius), m_bbox(
other.m_bbox)
415 if (!QGeoShapePrivate::operator==(
other))
430#include "moc_qgeocircle.cpp"
bool crossNorthPole() const
QGeoCoordinate center() const override
QGeoShapePrivate * clone() const override
QGeoRectangle boundingGeoRectangle() const override
bool operator==(const QGeoShapePrivate &other) const override
void setRadius(const qreal r)
bool crossSouthPole() const
bool isValid() const override
void extendCircle(const QGeoCoordinate &coordinate)
bool isEmpty() const override
size_t hash(size_t seed) const override
void setCenter(const QGeoCoordinate &c)
bool contains(const QGeoCoordinate &coordinate) const override
Q_INVOKABLE QGeoCircle translated(double degreesLatitude, double degreesLongitude) const
Returns a copy of this geo circle translated by degreesLatitude northwards and degreesLongitude eastw...
~QGeoCircle()
Destroys this geo circle.
void setCenter(const QGeoCoordinate ¢er)
Sets the center coordinate of this geo circle to center.
Q_INVOKABLE void extendCircle(const QGeoCoordinate &coordinate)
Extends the geo circle to also cover the coordinate coordinate.
Q_INVOKABLE void translate(double degreesLatitude, double degreesLongitude)
Translates this geo circle by degreesLatitude northwards and degreesLongitude eastwards.
QGeoCircle & operator=(const QGeoCircle &other)
Assigns other to this geo circle and returns a reference to this geo circle.
QGeoCoordinate center
This property holds the center coordinate for the geo circle.
Q_INVOKABLE QString toString() const
Returns the geo circle properties as a string.
qreal radius
This property holds the circle radius in meters.
void setRadius(qreal radius)
Sets the radius in meters of this geo circle to radius.
QGeoCircle()
Constructs a new, invalid geo circle.
double longitude
This property holds the longitude in decimal degrees.
double latitude
This property holds the latitude in decimal degrees.
Q_INVOKABLE QGeoCoordinate atDistanceAndAzimuth(qreal distance, qreal azimuth, qreal distanceUp=0.0) const
Returns the coordinate that is reached by traveling distance meters from the current coordinate at az...
void setLatitude(double latitude)
Sets the latitude (in decimal degrees) to latitude.
void setLongitude(double longitude)
Sets the longitude (in decimal degrees) to longitude.
Q_INVOKABLE qreal distanceTo(const QGeoCoordinate &other) const
Returns the distance (in meters) from this coordinate to the coordinate specified by other.
bool isValid
This property holds the validity of this geo coordinate.
void setTopLeft(const QGeoCoordinate &topLeft)
Sets the top left coordinate of this geo rectangle to topLeft.
void setBottomRight(const QGeoCoordinate &bottomRight)
Sets the bottom right coordinate of this geo rectangle to bottomRight.
QGeoShape & operator=(const QGeoShape &other)
Assigns other to this geo shape and returns a reference to this geo shape.
QSharedDataPointer< QGeoShapePrivate > d_ptr
ShapeType type
This property holds the type of this geo shape.
static double radians(double degrees)
static double degrees(double radians)
static double earthMeanRadius()
static double wrapLong(double lng)
static double clipLat(double lat, double clipValue=90.0)
const T * constData() const noexcept
Returns a const pointer to the shared data object.
T * data()
Returns a pointer to the shared data object.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
bool qFuzzyCompare(qfloat16 p1, qfloat16 p2) noexcept
bool qIsNaN(qfloat16 f) noexcept
constexpr QtPrivate::QHashMultiReturnType< T... > qHashMulti(size_t seed, const T &... args) noexcept(std::conjunction_v< QtPrivate::QNothrowHashable< T >... >)
GLsizei GLsizei GLfloat distance
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
#define QStringLiteral(str)