Skip to content

Commit

Permalink
Change comment for QgsCurveV2::sumUpArea
Browse files Browse the repository at this point in the history
(forward-port from 1c02dc7)
  • Loading branch information
mhugent authored and nyalldawson committed Jan 9, 2017
1 parent d3da179 commit 17b51ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions python/core/geometry/qgscurve.sip
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ class QgsCurve: public QgsAbstractGeometry
*/
virtual int numPoints() const = 0;

/** Calculates the area of the curve. Derived classes should override this
* to return the correct area of the curve.
/** Sums up the area of the curve by iterating over the vertices (shoelace formula).
*/
virtual void sumUpArea( double& sum ) const = 0;

Expand Down
3 changes: 1 addition & 2 deletions src/core/geometry/qgscurve.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ class CORE_EXPORT QgsCurve: public QgsAbstractGeometry
*/
virtual int numPoints() const = 0;

/** Calculates the area of the curve. Derived classes should override this
* to return the correct area of the curve.
/** Sums up the area of the curve by iterating over the vertices (shoelace formula).
*/
virtual void sumUpArea( double& sum ) const = 0;

Expand Down

0 comments on commit 17b51ab

Please sign in to comment.