[QGIS Commit] r13005 - in trunk/qgis: python/core src/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Mar 5 07:28:09 EST 2010


Author: mhugent
Date: 2010-03-05 07:28:08 -0500 (Fri, 05 Mar 2010)
New Revision: 13005

Modified:
   trunk/qgis/python/core/qgspoint.sip
   trunk/qgis/src/core/qgspoint.h
Log:
Update sip file for qgspoint

Modified: trunk/qgis/python/core/qgspoint.sip
===================================================================
--- trunk/qgis/python/core/qgspoint.sip	2010-03-05 12:14:41 UTC (rev 13004)
+++ trunk/qgis/python/core/qgspoint.sip	2010-03-05 12:28:08 UTC (rev 13005)
@@ -73,6 +73,10 @@
   /**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);
     

Modified: trunk/qgis/src/core/qgspoint.h
===================================================================
--- trunk/qgis/src/core/qgspoint.h	2010-03-05 12:14:41 UTC (rev 13004)
+++ trunk/qgis/src/core/qgspoint.h	2010-03-05 12:28:08 UTC (rev 13005)
@@ -144,6 +144,8 @@
     /**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



More information about the QGIS-commit mailing list