Skip to content

Commit

Permalink
const qgsgeometryutils
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti authored and nyalldawson committed Sep 24, 2021
1 parent 9e363a4 commit c63c630
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions python/core/auto_generated/geometry/qgsgeometryutils.sip.in
Expand Up @@ -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 &center1, double radius1,
const QgsPointXY &center2, double radius2,
QgsPointXY &intersection1 /Out/, QgsPointXY &intersection2 /Out/ ) /HoldGIL/;
%Docstring
Calculates the intersections points between the circle with center ``center1`` and
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeometryutils.cpp
Expand Up @@ -372,7 +372,7 @@ bool QgsGeometryUtils::lineCircleIntersection( const QgsPointXY &center, 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 &center1, const double r1, const QgsPointXY &center2, const double r2, QgsPointXY &intersection1, QgsPointXY &intersection2 )
{
// determine the straight-line distance between the centers
const double d = center1.distance( center2 );
Expand Down
4 changes: 2 additions & 2 deletions src/core/geometry/qgsgeometryutils.h
Expand Up @@ -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 &center1, double radius1,
const QgsPointXY &center2, double radius2,
QgsPointXY &intersection1 SIP_OUT, QgsPointXY &intersection2 SIP_OUT ) SIP_HOLDGIL;

/**
Expand Down

0 comments on commit c63c630

Please sign in to comment.