41 QgsVector operator*(
double scalar )
const;
42 QgsVector operator/(
double scalar )
const;
44 double length()
const;
52 double angle(
void )
const;
101 void set(
double x,
double y )
124 QString toString()
const;
127 QString toString(
int thePrecision )
const;
134 QString toDegreesMinutesSeconds(
int thePrecision )
const;
141 QString toDegreesMinutes(
int thePrecision )
const;
148 QString wellKnownText()
const;
151 double sqrDist(
double x,
double y )
const;
154 double sqrDist(
const QgsPoint& other )
const;
162 double azimuth(
const QgsPoint& other );
171 void multiply(
const double& scalar );
203 if (( p1.
x() == p2.
x() ) && ( p1.
y() == p2.
y() ) )
212 os << p.
toString().toLocal8Bit().data();
221 hash = h1 ^( h2 << 1 );
QgsVector operator-(QgsPoint p) const
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
QgsPoint & operator-=(const QgsVector &v)
QgsPoint operator+(const QgsVector &v) const
QgsPoint()
Default constructor.
const double DEFAULT_SEGMENT_EPSILON
default snapping tolerance for segments (
QString toString() const
String representation of the point (x,y)
void set(double x, double y)
A class to represent a point geometry.
double ANALYSIS_EXPORT angle(Point3D *p1, Point3D *p2, Point3D *p3, Point3D *p4)
Calculates the angle between two segments (in 2 dimension, z-values are ignored)
A class to represent a vector.
std::ostream & operator<<(std::ostream &os, const QgsPoint &p)
QgsPoint operator-(const QgsVector &v) const
QgsPoint(double x, double y)
QgsPoint & operator+=(const QgsVector &v)
uint qHash(const QgsPoint &p)
bool operator==(const QgsPoint &p1, const QgsPoint &p2)