eLynx SDK
v3.0.1 C++ image processing API reference |
#include <Vector.h>
Public Member Functions | |
Vector (uint32 iSize) | |
Vector (const IVector &iOther) | |
Vector (const Vector &iOther) | |
Vector & | operator= (const Vector &iOther) |
void | Resize (uint32 iSize) |
double | GetLength () const |
IVector implementation | |
virtual uint32 | GetSize () const |
virtual const double & | operator() (uint32 iIndex) const |
virtual double & | operator() (uint32 iIndex) |
virtual void | SwapValues (uint32 iIndex1, uint32 iIndex2) |
Definition at line 31 of file Vector.h.
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. |
An assignement operator
iOther | the vector to copy. |
virtual uint32 eLynx::Math::Vector::GetSize | ( | ) | const [inline, virtual] |
Returns the size of the vector.
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.
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 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.
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. |
double eLynx::Math::Vector::GetLength | ( | ) | const |
Computes vector euclidean length.