Skip to content

Commit b0b734e

Browse files
author
mhugent
committed
Update sip file for qgspoint
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13005 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 8f3083b commit b0b734e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

python/core/qgspoint.sip

+4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ public:
7373
/**Returns the squared distance between this and other point*/
7474
double sqrDist(const QgsPoint& other);
7575

76+
/**Returns the minimum distance between this point and a segment
77+
@note added in QGIS 1.5*/
78+
double sqrDistToSegment( double x1, double y1, double x2, double y2, QgsPoint& minDistPoint /Out/) const;
79+
7680
//! equality operator
7781
bool operator==(const QgsPoint &other);
7882

src/core/qgspoint.h

+2
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ class CORE_EXPORT QgsPoint
144144
/**Returns the squared distance between this and other point*/
145145
double sqrDist( const QgsPoint& other ) const;
146146

147+
/**Returns the minimum distance between this point and a segment
148+
@note added in QGIS 1.5*/
147149
double sqrDistToSegment( double x1, double y1, double x2, double y2, QgsPoint& minDistPoint ) const;
148150

149151
//! equality operator

0 commit comments

Comments
 (0)