QGIS API Documentation
3.0.2-Girona (307d082)
|
3 Class for storage of 3D vectors similar to QVector3D, with the difference that it uses double precision instead of single precision floating point numbers. More...
#include <qgsvector3d.h>
Public Member Functions | |
QgsVector3D ()=default | |
Constructs a null vector. More... | |
QgsVector3D (double x, double y, double z) | |
Constructs a vector from given coordinates. More... | |
bool | isNull () const |
Returns true if all three coordinates are zero. More... | |
bool | operator!= (const QgsVector3D &other) const |
QgsVector3D | operator+ (const QgsVector3D &other) |
Returns sum of two vectors. More... | |
QgsVector3D | operator- (const QgsVector3D &other) |
Returns difference of two vectors. More... | |
bool | operator== (const QgsVector3D &other) const |
void | set (double x, double y, double z) |
Sets vector coordinates. More... | |
double | x () const |
Returns X coordinate. More... | |
double | y () const |
Returns Y coordinate. More... | |
double | z () const |
Returns Z coordinate. More... | |
3 Class for storage of 3D vectors similar to QVector3D, with the difference that it uses double precision instead of single precision floating point numbers.
Definition at line 28 of file qgsvector3d.h.
|
default |
Constructs a null vector.
|
inline |
Constructs a vector from given coordinates.
Definition at line 35 of file qgsvector3d.h.
|
inline |
Returns true if all three coordinates are zero.
Definition at line 39 of file qgsvector3d.h.
|
inline |
Definition at line 60 of file qgsvector3d.h.
|
inline |
Returns sum of two vectors.
Definition at line 66 of file qgsvector3d.h.
|
inline |
Returns difference of two vectors.
Definition at line 72 of file qgsvector3d.h.
|
inline |
Definition at line 56 of file qgsvector3d.h.
|
inline |
Sets vector coordinates.
Definition at line 49 of file qgsvector3d.h.
|
inline |
Returns X coordinate.
Definition at line 42 of file qgsvector3d.h.
|
inline |
Returns Y coordinate.
Definition at line 44 of file qgsvector3d.h.
|
inline |
Returns Z coordinate.
Definition at line 46 of file qgsvector3d.h.