|
QGIS API Documentation
2.12.0-Lyon
|
Class Vector3D represents a 3D-Vector, capable to store x-,y- and z-coordinates in double values. More...
#include <Vector3D.h>
Public Member Functions | |
| Vector3D (double x, double y, double z) | |
| Constructor taking the three components as arguments. More... | |
| Vector3D () | |
| Default constructor. More... | |
| Vector3D (const Vector3D &v) | |
| Copy constructor. More... | |
| ~Vector3D () | |
| Destructor. More... | |
| double | getLength () const |
| Returns the length of the vector. More... | |
| double | getX () const |
| Returns the x-component of the vector. More... | |
| double | getY () const |
| Returns the y-component of the vector. More... | |
| double | getZ () const |
| Returns the z-component of the vector. More... | |
| bool | operator!= (const Vector3D &v) |
| Vector3D & | operator= (const Vector3D &v) |
| bool | operator== (const Vector3D &v) |
| void | setX (double x) |
| Sets the x-component of the vector. More... | |
| void | setY (double y) |
| Sets the y-component of the vector. More... | |
| void | setZ (double z) |
| Sets the z-component of the vector. More... | |
| void | standardise () |
| Standardises the vector. More... | |
Protected Attributes | |
| double | mX |
| X-component of the vector. More... | |
| double | mY |
| Y-component of the vector. More... | |
| double | mZ |
| Z-component of the vector. More... | |
Class Vector3D represents a 3D-Vector, capable to store x-,y- and z-coordinates in double values.
In fact, the class is the same as Point3D. The name 'vector' makes it easier to understand the programs.
Definition at line 22 of file Vector3D.h.
|
inline |
Constructor taking the three components as arguments.
Definition at line 68 of file Vector3D.h.
|
inline |
Default constructor.
Definition at line 73 of file Vector3D.h.
| Vector3D::Vector3D | ( | const Vector3D & | v | ) |
Copy constructor.
|
inline |
Destructor.
Definition at line 78 of file Vector3D.h.
| double Vector3D::getLength | ( | ) | const |
Returns the length of the vector.
|
inline |
Returns the x-component of the vector.
Definition at line 85 of file Vector3D.h.
|
inline |
Returns the y-component of the vector.
Definition at line 90 of file Vector3D.h.
|
inline |
Returns the z-component of the vector.
Definition at line 95 of file Vector3D.h.
| bool Vector3D::operator!= | ( | const Vector3D & | v | ) |
| bool Vector3D::operator== | ( | const Vector3D & | v | ) |
|
inline |
Sets the x-component of the vector.
Definition at line 100 of file Vector3D.h.
|
inline |
Sets the y-component of the vector.
Definition at line 105 of file Vector3D.h.
|
inline |
Sets the z-component of the vector.
Definition at line 110 of file Vector3D.h.
| void Vector3D::standardise | ( | ) |
Standardises the vector.
|
protected |
X-component of the vector.
Definition at line 30 of file Vector3D.h.
|
protected |
Y-component of the vector.
Definition at line 32 of file Vector3D.h.
|
protected |
Z-component of the vector.
Definition at line 34 of file Vector3D.h.
1.8.9.1