41 QgsVector operator*(
double scalar )
const;
42 QgsVector operator/(
double scalar )
const;
44 double length()
const;
52 double angle(
void )
const;
86 : m_x( point.x() ), m_y( point.y() )
94 : m_x( point.x() ), m_y( point.y() )
103 void setX(
double x )
111 void setY(
double y )
117 void set(
double x,
double y )
143 QPointF toQPointF()
const;
146 QString toString()
const;
149 QString toString(
int thePrecision )
const;
160 QString toDegreesMinutesSeconds(
int thePrecision,
const bool useSuffix =
true,
const bool padded =
false )
const;
171 QString toDegreesMinutes(
int thePrecision,
const bool useSuffix =
true,
const bool padded =
false )
const;
178 QString wellKnownText()
const;
181 double sqrDist(
double x,
double y )
const;
184 double sqrDist(
const QgsPoint& other )
const;
190 double azimuth(
const QgsPoint& other );
199 void multiply(
const double& scalar );
231 if (( p1.
x() == p2.
x() ) && ( p1.
y() == p2.
y() ) )
240 os << p.
toString().toLocal8Bit().data();
247 uint h1 =
qHash(( quint64 )p.m_x );
248 uint h2 =
qHash(( quint64 )p.m_y );
249 hash = h1 ^( h2 << 1 );