Ceetron Data Provider Framework
|
Public Member Functions | |
CDPVec3 () | |
Default constructor. | |
CDPVec3 (const CDPVec3 &other) | |
Copy constructor. | |
CDPVec3 (double x, double y, double z) | |
Construction from x, y, z coordinates. | |
CDPVec3 & | operator= (const CDPVec3 &rhs) |
Assignment operator. | |
const CDPVec3 | operator+ (const CDPVec3 &rhs) const |
Returns vector that is this vector added with rhs. | |
const CDPVec3 | operator- (const CDPVec3 &rhs) const |
Returns vector that is this vector subtracted with rhs. | |
double | operator* (const CDPVec3 &rhs) const |
Computes the dot product of this and rhs and return the result. | |
const CDPVec3 | operator^ (const CDPVec3 &rhs) const |
Computes the cross product of this and rhs and return the result. | |
const double & | x () const |
X element of the vector. | |
const double & | y () const |
Y element of the vector. | |
const double & | z () const |
Z element of the vector. | |
double & | x () |
X element of the vector. | |
double & | y () |
Y element of the vector. | |
double & | z () |
Z element of the vector. | |
void | set (double x, double y, double z) |
Sets x, y and z value. | |
A simple helper class for 3D vectors