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;
161 bool setPoint(
const QgsPoint &newPoint, Point index );
193 QString toString(
int pointPrecision = 17 ) const;
203 double perimeter() const;
205 SIP_PYOBJECT __repr__();
207 QString str = QStringLiteral(
"<QgsQuadrilateral: %1>" ).arg( sipCpp->toString() );
208 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
212 QgsPoint mPoint1, mPoint2, mPoint3, mPoint4;
215 #endif // QGSQUADRILATERAL_H