mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Add a function to set x and y coords in the one call
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3099 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
6447d251e7
commit
7170f5c417
@ -59,6 +59,12 @@ class QgsPoint
|
||||
m_y = y;
|
||||
}
|
||||
|
||||
/*! Sets the x and y value of the point */
|
||||
void set(double x, double y)
|
||||
{
|
||||
m_x = x;
|
||||
m_y = y;
|
||||
}
|
||||
|
||||
/*! Get the x value of the point
|
||||
* @return x coordinate
|
||||
|
Loading…
x
Reference in New Issue
Block a user