Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Const correctness for QgsPoint::azimuth
  • Loading branch information
nyalldawson committed Oct 18, 2016
1 parent 13afc10 commit d78d62e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/core/qgspoint.sip
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgspoint.cpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgspoint.h
Expand Up @@ -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
Expand Down

0 comments on commit d78d62e

Please sign in to comment.