Skip to content

Commit d78d62e

Browse files
committedOct 18, 2016
Const correctness for QgsPoint::azimuth
1 parent 13afc10 commit d78d62e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎python/core/qgspoint.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class QgsPoint
148148
double sqrDistToSegment( double x1, double y1, double x2, double y2, QgsPoint& minDistPoint /Out/, double epsilon = DEFAULT_SEGMENT_EPSILON ) const;
149149

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

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

‎src/core/qgspoint.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ double QgsPoint::sqrDist( const QgsPoint& other ) const
352352
return sqrDist( other.x(), other.y() );
353353
}
354354

355-
double QgsPoint::azimuth( const QgsPoint& other )
355+
double QgsPoint::azimuth( const QgsPoint& other ) const
356356
{
357357
double dx = other.x() - m_x;
358358
double dy = other.y() - m_y;

‎src/core/qgspoint.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class CORE_EXPORT QgsPoint
189189
double sqrDistToSegment( double x1, double y1, double x2, double y2, QgsPoint& minDistPoint, double epsilon = DEFAULT_SEGMENT_EPSILON ) const;
190190

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.