Inherits opentl::math::Vector.
Public Member Functions | |
double | abs () const |
calculates the length of this vector | |
double | calcStdDeviation () const |
caclulates the standard deviation of this vector | |
Vector3 | crossProduct (const math::Vector3 &v2) |
Calculate 3D cross product of this,v2. | |
std::size_t | dimension () const |
get the dimension of this vector (2) | |
double | dotProduct (const Vector *v2) const |
caclulates the dot product of this vector and another | |
void | normalize () |
normailize this vector | |
Vector4 | toVector4 () |
Vector3 (double x, double y, double z) | |
Constructor taking vector data. | |
Vector3 (const Matrix &m) | |
Constructor based on an existing matrix. | |
Vector3 (const Vector3 &m) | |
Constructor based on an existing matrix. | |
Vector3 () | |
Constructor. | |
virtual | ~Vector3 () |
Destructor. |
opentl::math::Vector3::Vector3 | ( | ) |
Constructor.
opentl::math::Vector3::Vector3 | ( | const Vector3 & | m | ) |
Constructor based on an existing matrix.
m | existing matrix |
opentl::math::Vector3::Vector3 | ( | const Matrix & | m | ) | [explicit] |
Constructor based on an existing matrix.
m | existing matrix |
opentl::math::Vector3::Vector3 | ( | double | x, | |
double | y, | |||
double | z | |||
) | [inline] |
Constructor taking vector data.
x | vector data | |
y | vector data | |
z | vector data |
virtual opentl::math::Vector3::~Vector3 | ( | ) | [virtual] |
Destructor.
double opentl::math::Vector3::abs | ( | ) | const [inline] |
calculates the length of this vector
double opentl::math::Vector3::calcStdDeviation | ( | ) | const [inline] |
caclulates the standard deviation of this vector
Vector3 opentl::math::Vector3::crossProduct | ( | const math::Vector3 & | v2 | ) |
Calculate 3D cross product of this,v2.
v2 | second vector of cross product |
std::size_t opentl::math::Vector3::dimension | ( | ) | const [inline, virtual] |
get the dimension of this vector (2)
Reimplemented from opentl::math::Vector.
double opentl::math::Vector3::dotProduct | ( | const Vector * | v2 | ) | const |
caclulates the dot product of this vector and another
v2 | the 2nd vector to be used |
void opentl::math::Vector3::normalize | ( | ) | [inline, virtual] |
Vector4 opentl::math::Vector3::toVector4 | ( | ) |
convert to a four dimension vector