18 #ifndef QGSQUADRILATERAL_H 19 #define QGSQUADRILATERAL_H 22 #include "qgis_core.h" 100 static constexpr
auto &rectangleFromDiagonal = rectangleFromExtent;
134 bool equals(
const QgsQuadrilateral &other,
double epsilon = 4 * std::numeric_limits<double>::epsilon() )
const;
143 bool isValid()
const;
192 QString toString(
int pointPrecision = 17 ) const;
202 double perimeter() const;
204 SIP_PYOBJECT __repr__();
206 QString str = QStringLiteral(
"<QgsQuadrilateral: %1>" ).arg( sipCpp->toString() );
207 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
211 QgsPoint mPoint1, mPoint2, mPoint3, mPoint4;
214 #endif // QGSQUADRILATERAL_H A rectangle specified with double values.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
A class to represent a 2D point.
Quadrilateral geometry type.
CORE_EXPORT std::unique_ptr< QgsPolygon > toPolygon(const QgsMeshFace &face, const QVector< QgsMeshVertex > &vertices)
Returns face as polygon geometry, caller is responsible for delete.
ConstructionOption
A quadrilateral can be constructed from 3 points where the second distance can be determined by the t...
Point geometry type, with support for z-dimension and m-values.
QVector< QgsPoint > QgsPointSequence
Point
Simple enumeration to ensure indices in setPoint.
Line string geometry type, with support for z-dimension and m-values.