mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-30 00:04:58 -05:00
Spelling
This commit is contained in:
parent
f759c59334
commit
0c5ffe7ecf
@ -502,7 +502,7 @@ Averages two angles, correctly handling negative angles and ensuring the result
|
|||||||
%Docstring
|
%Docstring
|
||||||
Returns a number representing the closest side of a rectangle defined by /a right,
|
Returns a number representing the closest side of a rectangle defined by /a right,
|
||||||
``bottom``, ``left``, ``top`` to the point at (``x``, ``y``), where
|
``bottom``, ``left``, ``top`` to the point at (``x``, ``y``), where
|
||||||
the point may be in ther interior of the rectangle or outside it.
|
the point may be in the interior of the rectangle or outside it.
|
||||||
|
|
||||||
The returned value may be:
|
The returned value may be:
|
||||||
|
|
||||||
|
|||||||
@ -638,14 +638,14 @@ void QgsGeometryUtils::perpendicularOffsetPointAlongSegment( double x1, double y
|
|||||||
const double mY = y1 + ( y2 - y1 ) * proportion;
|
const double mY = y1 + ( y2 - y1 ) * proportion;
|
||||||
const double pX = x1 - x2;
|
const double pX = x1 - x2;
|
||||||
const double pY = y1 - y2;
|
const double pY = y1 - y2;
|
||||||
double normalX = -pY;
|
double normalX = -pY; //#spellok
|
||||||
double normalY = pX;
|
double normalY = pX;
|
||||||
const double normalLength = sqrt( ( normalX * normalX ) + ( normalY * normalY ) );
|
const double normalLength = sqrt( ( normalX * normalX ) + ( normalY * normalY ) ); //#spellok
|
||||||
normalX /= normalLength;
|
normalX /= normalLength; //#spellok
|
||||||
normalY /= normalLength;
|
normalY /= normalLength;
|
||||||
|
|
||||||
*x = mX + offset * normalX;
|
*x = mX + offset * normalX;
|
||||||
*y = mY + offset * normalY;
|
*y = mY + offset * normalY; //#spellok
|
||||||
}
|
}
|
||||||
|
|
||||||
QgsPoint QgsGeometryUtils::interpolatePointOnArc( const QgsPoint &pt1, const QgsPoint &pt2, const QgsPoint &pt3, double distance )
|
QgsPoint QgsGeometryUtils::interpolatePointOnArc( const QgsPoint &pt1, const QgsPoint &pt2, const QgsPoint &pt3, double distance )
|
||||||
|
|||||||
@ -550,7 +550,7 @@ class CORE_EXPORT QgsGeometryUtils
|
|||||||
/**
|
/**
|
||||||
* Returns a number representing the closest side of a rectangle defined by /a right,
|
* Returns a number representing the closest side of a rectangle defined by /a right,
|
||||||
* \a bottom, \a left, \a top to the point at (\a x, \a y), where
|
* \a bottom, \a left, \a top to the point at (\a x, \a y), where
|
||||||
* the point may be in ther interior of the rectangle or outside it.
|
* the point may be in the interior of the rectangle or outside it.
|
||||||
*
|
*
|
||||||
* The returned value may be:
|
* The returned value may be:
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user