#include <GUIVector3.h>
Public Member Functions | |
GUIVector3 (eC_Value xVal, eC_Value yVal, eC_Value zVal) | |
eC_Value | operator* (const GUIVector3 &rkVec) const |
GUIVector3 | operator*= (const eC_Value &rkVal) |
GUIVector3 | operator+= (const GUIVector3 &rkVec) |
GUIVector3 | operator-= (const GUIVector3 &rkVec) |
void | XRotate (eC_Value vAngle) |
void | YRotate (eC_Value vAngle) |
Public Attributes | |
eC_Value | m_vX |
x | |
eC_Value | m_vY |
y | |
eC_Value | m_vZ |
z | |
Helper-class for a 3-dimensional vector
GUIVector3::GUIVector3 | ( | eC_Value | xVal, |
eC_Value | yVal, | ||
eC_Value | zVal | ||
) |
Constructor
xVal | |
yVal | |
zVal |
eC_Value GUIVector3::operator* | ( | const GUIVector3 & | rkVec | ) | const |
Scalar product
rkVec | vector |
GUIVector3 GUIVector3::operator*= | ( | const eC_Value & | rkVal | ) |
Scale this vector
rkVal | scaling-factor |
GUIVector3 GUIVector3::operator+= | ( | const GUIVector3 & | rkVec | ) |
Translate this vector in positive direction
rkVec | vector |
GUIVector3 GUIVector3::operator-= | ( | const GUIVector3 & | rkVec | ) |
Translate this vector in negative direction
rkVec | vector |
void GUIVector3::XRotate | ( | eC_Value | vAngle | ) |
Rotate point around x-axis (angle given in rad)
vAngle |
void GUIVector3::YRotate | ( | eC_Value | vAngle | ) |
Rotate point around y-axis (angle given in rad)
vAngle |