mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
Add setX, setY, setZ functions to QgsVector3D
This commit is contained in:
parent
b9b9fe8214
commit
1e48ebff1f
@ -51,6 +51,27 @@ Returns Y coordinate
|
||||
double z() const;
|
||||
%Docstring
|
||||
Returns Z coordinate
|
||||
%End
|
||||
|
||||
void setX( double x );
|
||||
%Docstring
|
||||
Sets X coordinate
|
||||
|
||||
.. versionadded:: 3.34
|
||||
%End
|
||||
|
||||
void setY( double y );
|
||||
%Docstring
|
||||
Sets Y coordinate
|
||||
|
||||
.. versionadded:: 3.34
|
||||
%End
|
||||
|
||||
void setZ( double z );
|
||||
%Docstring
|
||||
Sets Z coordinate
|
||||
|
||||
.. versionadded:: 3.34
|
||||
%End
|
||||
|
||||
void set( double x, double y, double z );
|
||||
|
@ -52,6 +52,24 @@ class CORE_EXPORT QgsVector3D
|
||||
//! Returns Z coordinate
|
||||
double z() const { return mZ; }
|
||||
|
||||
/**
|
||||
* Sets X coordinate
|
||||
* \since QGIS 3.34
|
||||
*/
|
||||
void setX( double x ) { mX = x; }
|
||||
|
||||
/**
|
||||
* Sets Y coordinate
|
||||
* \since QGIS 3.34
|
||||
*/
|
||||
void setY( double y ) { mY = y; }
|
||||
|
||||
/**
|
||||
* Sets Z coordinate
|
||||
* \since QGIS 3.34
|
||||
*/
|
||||
void setZ( double z ) { mZ = z; }
|
||||
|
||||
//! Sets vector coordinates
|
||||
void set( double x, double y, double z )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user