Skip to content

Commit

Permalink
Dox
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 24, 2020
1 parent 452bb6a commit ea3eb72
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Expand Up @@ -741,6 +741,8 @@ May return an empty linestring if the substring is zero length.
%Docstring
Returns ``True`` if the angle formed by the line ``p1`` - ``p2`` - ``p3`` forms a "sharp" corner.

Sharp corners form an angle which exceeds a 45 degree threshold.

.. versionadded:: 3.16
%End

Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology/qgslinesymbollayer.cpp
Expand Up @@ -642,7 +642,7 @@ void QgsSimpleLineSymbolLayer::drawPathWithDashPatternTweaks( QPainter *painter,
const double dashWidthDiv = std::max( 1.0, pen.widthF() );
// back to painter units
for ( int i = 0; i < sourcePattern.size(); ++ i )
sourcePattern[i ] *= dashWidthDiv;
sourcePattern[i] *= dashWidthDiv;

QVector< qreal > buffer;
QPolygonF bufferedPoints;
Expand Down
2 changes: 2 additions & 0 deletions src/core/symbology/qgssymbollayerutils.h
Expand Up @@ -665,6 +665,8 @@ class CORE_EXPORT QgsSymbolLayerUtils
/**
* Returns TRUE if the angle formed by the line \a p1 - \a p2 - \a p3 forms a "sharp" corner.
*
* Sharp corners form an angle which exceeds a 45 degree threshold.
*
* \since QGIS 3.16
*/
static bool isSharpCorner( QPointF p1, QPointF p2, QPointF p3 );
Expand Down

0 comments on commit ea3eb72

Please sign in to comment.