Vector3D class
Class Vector3D represents a 3D-Vector, capable to store x-,y- and z-coordinates in double values.
Contents
In fact, the class is the same as QgsPoint. The name 'vector' makes it easier to understand the programs.
Constructors, destructors, conversion operators
Public functions
- auto getLength() const -> double
- Returns the length of the vector.
- auto getX() const -> double
- Returns the x-component of the vector.
- auto getY() const -> double
- Returns the y-component of the vector.
- auto getZ() const -> double
- Returns the z-component of the vector.
- void setX(double x)
- Sets the x-component of the vector.
- void setY(double y)
- Sets the y-component of the vector.
- void setZ(double z)
- Sets the z-component of the vector.
- void standardise()
- Standardises the vector.