eLynx SDK
v3.3.0 C++ image processing API reference |
Basic N-size vector implementation as array of doubles. More...
#include <Vector.h>
Public Member Functions | |
Vector (uint32 iSize) | |
Constructor, creates vector of specified size. | |
Vector (const IVector &iOther) | |
Constructor, creates vector as a copy of given vector. | |
Vector (const Vector &iOther) | |
Copy constructor. | |
Vector & | operator= (const Vector &iOther) |
An assignement operator. | |
void | Resize (uint32 iSize) |
Resizes vector to specified size. | |
double | GetLength () const |
Computes vector euclidean length. | |
IVector implementation | |
virtual uint32 | GetSize () const |
Returns the size of the vector. | |
virtual const double & | operator() (uint32 iIndex) const |
Vector content access operator. | |
virtual double & | operator() (uint32 iIndex) |
Vector content access operator. | |
virtual void | SwapValues (uint32 iIndex1, uint32 iIndex2) |
Swaps specified values of the vector. |
Basic N-size vector implementation as array of doubles.
Vector indices are zero-based.
eLynx::Math::Vector::Vector | ( | uint32 | iSize ) |
Constructor, creates vector of specified size.
The content of the vector is not initialized.
iSize | the size of the vector |
eLynx::Math::Vector::Vector | ( | const IVector & | iOther ) |
Constructor, creates vector as a copy of given vector.
iOther | the vector to copy. |
eLynx::Math::Vector::Vector | ( | const Vector & | iOther ) |
Copy constructor.
iOther | the vector to copy. |
double eLynx::Math::Vector::GetLength | ( | ) | const |
Computes vector euclidean length.
virtual uint32 eLynx::Math::Vector::GetSize | ( | ) | const [inline, virtual] |
Returns the size of the vector.
Implements eLynx::Math::IVector.
virtual double& eLynx::Math::Vector::operator() | ( | uint32 | iIndex ) | [virtual] |
Vector content access operator.
Can be used in form Vector(i). () operator is prefered on [] operator to unify content access for vectors and matrices.
iIndex | the vector value index |
Implements eLynx::Math::IVector.
virtual const double& eLynx::Math::Vector::operator() | ( | uint32 | iIndex ) | const [virtual] |
Vector content access operator.
Can be used in form Vector(i). () operator is prefered on [] operator to unify content access for vectors and matrices.
iIndex | the vector value index |
Implements eLynx::Math::IVector.
An assignement operator.
iOther | the vector to copy. |
void eLynx::Math::Vector::Resize | ( | uint32 | iSize ) |
Resizes vector to specified size.
The vector content is not defined after this operation.
iSize | the size of the vector. |
virtual void eLynx::Math::Vector::SwapValues | ( | uint32 | iIndex1, |
uint32 | iIndex2 | ||
) | [virtual] |
Swaps specified values of the vector.
iIndex1 | the index of the first value to swap |
iIndex2 | the index of the second value to swap |
Implements eLynx::Math::IVector.