11 #include "CDPBaseTypes.h"
34 inline const double&
x()
const;
35 inline const double&
y()
const;
36 inline const double&
z()
const;
40 inline void set(
double x,
double y,
double z);
47 #include "CDPVec3.inl"
const double & z() const
Z element of the vector.
Definition: CDPVec3.inl:111
double operator*(const CDPVec3 &rhs) const
Computes the dot product of this and rhs and return the result.
Definition: CDPVec3.inl:77
const CDPVec3 operator^(const CDPVec3 &rhs) const
Computes the cross product of this and rhs and return the result.
Definition: CDPVec3.inl:85
const CDPVec3 operator-(const CDPVec3 &rhs) const
Returns vector that is this vector subtracted with rhs.
Definition: CDPVec3.inl:69
void set(double x, double y, double z)
Sets x, y and z value.
Definition: CDPVec3.inl:147
const CDPVec3 operator+(const CDPVec3 &rhs) const
Returns vector that is this vector added with rhs.
Definition: CDPVec3.inl:61
const double & y() const
Y element of the vector.
Definition: CDPVec3.inl:102
const double & x() const
X element of the vector.
Definition: CDPVec3.inl:93
CDPVec3()
Default constructor.
Definition: CDPVec3.inl:19
CDPVec3 & operator=(const CDPVec3 &rhs)
Assignment operator.
Definition: CDPVec3.inl:49