Skip to content
Permalink
Browse files

Const correctness for QgsPoint::azimuth

  • Loading branch information
nyalldawson committed Oct 18, 2016
1 parent 13afc10 commit d78d62eb0a11e332b34720aa7db0ee11ab1cd05d
Showing with 3 additions and 3 deletions.
  1. +1 −1 python/core/qgspoint.sip
  2. +1 −1 src/core/qgspoint.cpp
  3. +1 −1 src/core/qgspoint.h
@@ -148,7 +148,7 @@ class QgsPoint
double sqrDistToSegment( double x1, double y1, double x2, double y2, QgsPoint& minDistPoint /Out/, double epsilon = DEFAULT_SEGMENT_EPSILON ) const;

/** Calculates azimuth between this point and other one (clockwise in degree, starting from north) */
double azimuth( const QgsPoint& other );
double azimuth( const QgsPoint& other ) const;

/** Compares this point with another point with a fuzzy tolerance
* @param other point to compare with
@@ -352,7 +352,7 @@ double QgsPoint::sqrDist( const QgsPoint& other ) const
return sqrDist( other.x(), other.y() );
}

double QgsPoint::azimuth( const QgsPoint& other )
double QgsPoint::azimuth( const QgsPoint& other ) const
{
double dx = other.x() - m_x;
double dy = other.y() - m_y;
@@ -189,7 +189,7 @@ class CORE_EXPORT QgsPoint
double sqrDistToSegment( double x1, double y1, double x2, double y2, QgsPoint& minDistPoint, double epsilon = DEFAULT_SEGMENT_EPSILON ) const;

/** Calculates azimuth between this point and other one (clockwise in degree, starting from north) */
double azimuth( const QgsPoint& other );
double azimuth( const QgsPoint& other ) const;

/** Compares this point with another point with a fuzzy tolerance
* @param other point to compare with

0 comments on commit d78d62e

Please sign in to comment.
You can’t perform that action at this time.