From c63c630c1678f17fa47f225403350a1dba8eaf24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bartoletti?= Date: Thu, 23 Sep 2021 06:38:25 +0200 Subject: [PATCH] const qgsgeometryutils --- python/core/auto_generated/geometry/qgsgeometryutils.sip.in | 4 ++-- src/core/geometry/qgsgeometryutils.cpp | 2 +- src/core/geometry/qgsgeometryutils.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python/core/auto_generated/geometry/qgsgeometryutils.sip.in b/python/core/auto_generated/geometry/qgsgeometryutils.sip.in index 89de2b4d706..29fb27df6c3 100644 --- a/python/core/auto_generated/geometry/qgsgeometryutils.sip.in +++ b/python/core/auto_generated/geometry/qgsgeometryutils.sip.in @@ -160,8 +160,8 @@ the closest point to the initial ``intersection`` point is returned. :return: ``True`` if an intersection has been found %End - static int circleCircleIntersections( QgsPointXY center1, double radius1, - QgsPointXY center2, double radius2, + static int circleCircleIntersections( const QgsPointXY ¢er1, double radius1, + const QgsPointXY ¢er2, double radius2, QgsPointXY &intersection1 /Out/, QgsPointXY &intersection2 /Out/ ) /HoldGIL/; %Docstring Calculates the intersections points between the circle with center ``center1`` and diff --git a/src/core/geometry/qgsgeometryutils.cpp b/src/core/geometry/qgsgeometryutils.cpp index 4be655b61c8..9da82d98f0d 100644 --- a/src/core/geometry/qgsgeometryutils.cpp +++ b/src/core/geometry/qgsgeometryutils.cpp @@ -372,7 +372,7 @@ bool QgsGeometryUtils::lineCircleIntersection( const QgsPointXY ¢er, const d // based on public domain work by 3/26/2005 Tim Voght // see http://paulbourke.net/geometry/circlesphere/tvoght.c -int QgsGeometryUtils::circleCircleIntersections( QgsPointXY center1, const double r1, QgsPointXY center2, const double r2, QgsPointXY &intersection1, QgsPointXY &intersection2 ) +int QgsGeometryUtils::circleCircleIntersections( const QgsPointXY ¢er1, const double r1, const QgsPointXY ¢er2, const double r2, QgsPointXY &intersection1, QgsPointXY &intersection2 ) { // determine the straight-line distance between the centers const double d = center1.distance( center2 ); diff --git a/src/core/geometry/qgsgeometryutils.h b/src/core/geometry/qgsgeometryutils.h index 88b242f2c22..cfc40e1df1e 100644 --- a/src/core/geometry/qgsgeometryutils.h +++ b/src/core/geometry/qgsgeometryutils.h @@ -169,8 +169,8 @@ class CORE_EXPORT QgsGeometryUtils * * \since QGIS 3.2 */ - static int circleCircleIntersections( QgsPointXY center1, double radius1, - QgsPointXY center2, double radius2, + static int circleCircleIntersections( const QgsPointXY ¢er1, double radius1, + const QgsPointXY ¢er2, double radius2, QgsPointXY &intersection1 SIP_OUT, QgsPointXY &intersection2 SIP_OUT ) SIP_HOLDGIL; /**