Skip to content
Permalink
Browse files

Dox

  • Loading branch information
nyalldawson committed Jul 24, 2020
1 parent 452bb6a commit ea3eb7220c411801c07ceb2885bcfeee4dbaf7f9
@@ -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

@@ -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;
@@ -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 );

0 comments on commit ea3eb72

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