Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update sip file for qgspoint
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13005 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Mar 5, 2010
1 parent 8f3083b commit b0b734e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/core/qgspoint.sip
Expand Up @@ -73,6 +73,10 @@ public:
/**Returns the squared distance between this and other point*/
double sqrDist(const QgsPoint& other);

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

//! equality operator
bool operator==(const QgsPoint &other);

Expand Down
2 changes: 2 additions & 0 deletions src/core/qgspoint.h
Expand Up @@ -144,6 +144,8 @@ class CORE_EXPORT QgsPoint
/**Returns the squared distance between this and other point*/
double sqrDist( const QgsPoint& other ) const;

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

//! equality operator
Expand Down

0 comments on commit b0b734e

Please sign in to comment.