mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-16 00:05:45 -04:00
const qgsgeometryutils
This commit is contained in:
parent
9e363a4aea
commit
c63c630c16
@ -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
|
||||
|
@ -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 );
|
||||
|
@ -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;
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user