Skip to content
Browse files


  • Loading branch information
mhugent committed Sep 5, 2015
1 parent 8e1a19a commit 557701ca9e1d14949c675cb86dc55564f680e425
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/geometry/qgsgeometryutils.h
@@ -95,10 +95,13 @@ class CORE_EXPORT QgsGeometryUtils
static QDomElement pointsToGML3( const QList<QgsPointV2>& points, QDomDocument &doc, int precision, const QString& ns, bool is3D );
/** Returns a geoJSON coordinates string */
static QString pointsToJSON( const QList<QgsPointV2>& points, int precision );

/**Calculates direction of line (clockwise from north direction) in radians*/
static double lineAngle( double x1, double y1, double x2, double y2 );
/**Calculates angle perpendicular to line*/
static double linePerpendicularAngle( double x1, double y1, double x2, double y2 );
/**Angle between two linear segments*/
static double averageAngle( double x1, double y1, double x2, double y2, double x3, double y3 );
/**Averages two angles*/
static double averageAngle( double a1, double a2 );

0 comments on commit 557701c

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