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 | |
Vector4 | crossProduct (const math::Vector4 &v2) |
Calculate 3D cross product of two homogeneous vectors 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 (const Vector3 &v) | |
Constructor based on a three dimensional vector. | |
Vector4 (const Matrix &m) | |
Vector4 (const Vector4 &m) | |
Constructor based on an existing matrix. | |
Vector4 (double x, double y, double z, double s=1.0f) | |
Constructor taking vector data and set fourth dimension to 1.0. | |
Vector4 () | |
Constructor. | |
virtual | ~Vector4 () |
Destructor. |
opentl::math::Vector4::Vector4 | ( | ) |
Constructor.
virtual opentl::math::Vector4::~Vector4 | ( | ) | [virtual] |
Destructor.
opentl::math::Vector4::Vector4 | ( | double | x, | |
double | y, | |||
double | z, | |||
double | s = 1.0f | |||
) |
Constructor taking vector data and set fourth dimension to 1.0.
x | vector element 0 | |
y | vector element 1 | |
z | vector element 2 | |
s | vector element 3, scale parameter (default = 1.0) |
opentl::math::Vector4::Vector4 | ( | const Vector4 & | m | ) |
Constructor based on an existing matrix.
m | existing matrix |
opentl::math::Vector4::Vector4 | ( | const Matrix & | m | ) |
opentl::math::Vector4::Vector4 | ( | const Vector3 & | v | ) |
Constructor based on a three dimensional vector.
v | existing vector |
double opentl::math::Vector4::abs | ( | ) | const |
calculates the length of this vector
double opentl::math::Vector4::calcStdDeviation | ( | ) | const |
caclulates the standard deviation of this vector
Vector4 opentl::math::Vector4::crossProduct | ( | const math::Vector4 & | v2 | ) |
Calculate 3D cross product of two homogeneous vectors this, v2.
v2 | second vector of cross product |
std::size_t opentl::math::Vector4::dimension | ( | ) | const [virtual] |
get the dimension of this vector (2)
Reimplemented from opentl::math::Vector.
double opentl::math::Vector4::dotProduct | ( | const Vector * | v2 | ) | const |
caclulates the dot product of this vector and another
v2 | the 2nd vector to be used |
void opentl::math::Vector4::normalize | ( | ) | [virtual] |