Skip to content

Commit

Permalink
Spell again
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 19, 2021
1 parent 0c5ffe7 commit b4f890e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/geometry/qgsgeometryutils.cpp
Expand Up @@ -638,11 +638,11 @@ void QgsGeometryUtils::perpendicularOffsetPointAlongSegment( double x1, double y
const double mY = y1 + ( y2 - y1 ) * proportion;
const double pX = x1 - x2;
const double pY = y1 - y2;
double normalX = -pY; //#spellok
double normalY = pX;
double normalX = -pY;
double normalY = pX; //#spellok
const double normalLength = sqrt( ( normalX * normalX ) + ( normalY * normalY ) ); //#spellok
normalX /= normalLength; //#spellok
normalY /= normalLength;
normalX /= normalLength;
normalY /= normalLength; //#spellok

*x = mX + offset * normalX;
*y = mY + offset * normalY; //#spellok
Expand Down

0 comments on commit b4f890e

Please sign in to comment.