18#ifndef QGSQUADRILATERAL_H
19#define QGSQUADRILATERAL_H
202 QString toString(
int pointPrecision = 17 ) const;
214 SIP_PYOBJECT __repr__();
216 QString str = QStringLiteral(
"<QgsQuadrilateral: %1>" ).arg( sipCpp->toString() );
217 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
221 QgsPoint mPoint1, mPoint2, mPoint3, mPoint4;
Line string geometry type, with support for z-dimension and m-values.
Point geometry type, with support for z-dimension and m-values.
Quadrilateral geometry type.
static QgsQuadrilateral fromRectangle(const QgsRectangle &rectangle)
Construct a QgsQuadrilateral as a rectangle from a QgsRectangle.
static QgsQuadrilateral rectangleFromCenterPoint(const QgsPoint ¢er, const QgsPoint &point)
Construct a QgsQuadrilateral as a rectangle from center point center and another point point.
static QgsQuadrilateral rectangleFromExtent(const QgsPoint &p1, const QgsPoint &p2)
Construct a QgsQuadrilateral as a rectangle from an extent, defined by two opposite corner points.
static constexpr auto & rectangleFromDiagonal
Alias for rectangleFromDiagonal.
Point
Simple enumeration to ensure indices in setPoint.
bool isValid() const
Convenient method to determine if a QgsQuadrilateral is valid.
static QgsQuadrilateral squareFromDiagonal(const QgsPoint &p1, const QgsPoint &p2)
Construct a QgsQuadrilateral as a square from a diagonal.
QgsQuadrilateral()
Constructor for an empty quadrilateral geometry.
bool equals(const QgsQuadrilateral &other, double epsilon=4 *std::numeric_limits< double >::epsilon()) const
Compares two QgsQuadrilateral, allowing specification of the maximum allowable difference between poi...
ConstructionOption
A quadrilateral can be constructed from 3 points where the second distance can be determined by the t...
@ Distance
Second distance is equal to the distance between 2nd and 3rd point.
@ Projected
Second distance is equal to the distance of the perpendicular projection of the 3rd point on the segm...
A rectangle specified with double values.
QVector< QgsPoint > QgsPointSequence