Inherits opentl::math::Vector.
Public Member Functions | |
double | abs () const |
calculates the length of this vector | |
void | calcMaxsOfVectors (const Vector2 &v) |
stores the pairwise maximum of this and another vector | |
void | calcMinsOfVectors (const Vector2 &v) |
stores the pairwise minimum of this and another vector | |
double | calcStdDeviation () const |
caclulates the standard deviation of this vector | |
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 | |
CvPoint | getCvPoint () |
Convert this Vector to a CvPoint. | |
void | normalize () |
normailize this vector | |
Vector3 | toVector3 () |
convert to a three dimension vector | |
Vector2 (double x, double y) | |
Constructor taking vector data. | |
Vector2 (const Matrix &m) | |
Constructor based on an existing matrix. | |
Vector2 (const Vector2 &m) | |
Constructor based on an existing Vector2. | |
Vector2 () | |
Constructor. | |
virtual | ~Vector2 () |
Destructor. |
opentl::math::Vector2::Vector2 | ( | ) |
Constructor.
opentl::math::Vector2::Vector2 | ( | const Vector2 & | m | ) |
opentl::math::Vector2::Vector2 | ( | const Matrix & | m | ) |
Constructor based on an existing matrix.
m | existing matrix |
opentl::math::Vector2::Vector2 | ( | double | x, | |
double | y | |||
) | [inline] |
Constructor taking vector data.
x | vector data | |
y | vector data |
virtual opentl::math::Vector2::~Vector2 | ( | ) | [virtual] |
Destructor.
double opentl::math::Vector2::abs | ( | ) | const [inline] |
calculates the length of this vector
void opentl::math::Vector2::calcMaxsOfVectors | ( | const Vector2 & | v | ) | [inline] |
stores the pairwise maximum of this and another vector
void opentl::math::Vector2::calcMinsOfVectors | ( | const Vector2 & | v | ) | [inline] |
stores the pairwise minimum of this and another vector
double opentl::math::Vector2::calcStdDeviation | ( | ) | const [inline] |
caclulates the standard deviation of this vector
std::size_t opentl::math::Vector2::dimension | ( | ) | const [inline, virtual] |
get the dimension of this vector (2)
Reimplemented from opentl::math::Vector.
double opentl::math::Vector2::dotProduct | ( | const Vector * | v2 | ) | const [inline] |
caclulates the dot product of this vector and another
v2 | the 2nd vector to be used |
CvPoint opentl::math::Vector2::getCvPoint | ( | ) |
void opentl::math::Vector2::normalize | ( | ) | [inline, virtual] |