const qgsgeometryutils

This commit is contained in:
Loïc Bartoletti 2021-09-23 06:38:25 +02:00 committed by Nyall Dawson
parent 9e363a4aea
commit c63c630c16
3 changed files with 5 additions and 5 deletions

View File

@ -160,8 +160,8 @@ the closest point to the initial ``intersection`` point is returned.
:return: ``True`` if an intersection has been found :return: ``True`` if an intersection has been found
%End %End
static int circleCircleIntersections( QgsPointXY center1, double radius1, static int circleCircleIntersections( const QgsPointXY &center1, double radius1,
QgsPointXY center2, double radius2, const QgsPointXY &center2, double radius2,
QgsPointXY &intersection1 /Out/, QgsPointXY &intersection2 /Out/ ) /HoldGIL/; QgsPointXY &intersection1 /Out/, QgsPointXY &intersection2 /Out/ ) /HoldGIL/;
%Docstring %Docstring
Calculates the intersections points between the circle with center ``center1`` and Calculates the intersections points between the circle with center ``center1`` and

View File

@ -372,7 +372,7 @@ bool QgsGeometryUtils::lineCircleIntersection( const QgsPointXY &center, const d
// based on public domain work by 3/26/2005 Tim Voght // based on public domain work by 3/26/2005 Tim Voght
// see http://paulbourke.net/geometry/circlesphere/tvoght.c // 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 // determine the straight-line distance between the centers
const double d = center1.distance( center2 ); const double d = center1.distance( center2 );

View File

@ -169,8 +169,8 @@ class CORE_EXPORT QgsGeometryUtils
* *
* \since QGIS 3.2 * \since QGIS 3.2
*/ */
static int circleCircleIntersections( QgsPointXY center1, double radius1, static int circleCircleIntersections( const QgsPointXY &center1, double radius1,
QgsPointXY center2, double radius2, const QgsPointXY &center2, double radius2,
QgsPointXY &intersection1 SIP_OUT, QgsPointXY &intersection2 SIP_OUT ) SIP_HOLDGIL; QgsPointXY &intersection1 SIP_OUT, QgsPointXY &intersection2 SIP_OUT ) SIP_HOLDGIL;
/** /**