19 #include "qgis_core.h" 95 double length()
const;
104 return mX * mX + mY * mY;
127 double angle()
const;
140 double crossProduct(
QgsVector v )
const;
161 double mX = 0.0, mY = 0.0;
167 #endif // QGSVECTOR_H bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
double ANALYSIS_EXPORT angle(QgsPoint *p1, QgsPoint *p2, QgsPoint *p3, QgsPoint *p4)
Calculates the angle between two segments (in 2 dimension, z-values are ignored)
Q_DECLARE_TYPEINFO(QgsVector, Q_MOVABLE_TYPE)
QgsMargins operator/(const QgsMargins &margins, double divisor)
Returns a QgsMargins object that is formed by dividing the components of the given margins by the giv...
QDateTime operator+(const QDateTime &start, QgsInterval interval)
A class to represent a vector.
QgsInterval operator-(const QDateTime &dt1, const QDateTime &dt2)
Returns the interval between two datetimes.
QgsMargins operator*(const QgsMargins &margins, double factor)
Returns a QgsMargins object that is formed by multiplying each component of the given margins by fact...
double lengthSquared() const
Returns the length of the vector.