eLynx SDK v3.3.0
C++ image processing API reference
Public Member Functions

eLynx::Math::Vector Class Reference

Basic N-size vector implementation as array of doubles. More...

#include <Vector.h>

Inheritance diagram for eLynx::Math::Vector:
eLynx::Math::IVector

List of all members.

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.
Vectoroperator= (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.

Detailed Description

Basic N-size vector implementation as array of doubles.

Vector indices are zero-based.


Constructor & Destructor Documentation

eLynx::Math::Vector::Vector ( uint32  iSize )

Constructor, creates vector of specified size.

The content of the vector is not initialized.

Parameters:
iSizethe size of the vector
eLynx::Math::Vector::Vector ( const IVector iOther )

Constructor, creates vector as a copy of given vector.

Parameters:
iOtherthe vector to copy.
eLynx::Math::Vector::Vector ( const Vector iOther )

Copy constructor.

Parameters:
iOtherthe vector to copy.

Member Function Documentation

double eLynx::Math::Vector::GetLength (  ) const

Computes vector euclidean length.

Returns:
the length of the vector
virtual uint32 eLynx::Math::Vector::GetSize (  ) const [inline, virtual]

Returns the size of the vector.

Returns:
the dimension of the vector ie number of components.

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.

Parameters:
iIndexthe vector value index
Returns:
the reference to specified vector value

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.

Parameters:
iIndexthe vector value index
Returns:
the const reference to specified vector value

Implements eLynx::Math::IVector.

Vector& eLynx::Math::Vector::operator= ( const Vector iOther )

An assignement operator.

Parameters:
iOtherthe vector to copy.
Returns:
the reference to this vector.
void eLynx::Math::Vector::Resize ( uint32  iSize )

Resizes vector to specified size.

The vector content is not defined after this operation.

Parameters:
iSizethe size of the vector.
virtual void eLynx::Math::Vector::SwapValues ( uint32  iIndex1,
uint32  iIndex2 
) [virtual]

Swaps specified values of the vector.

Parameters:
iIndex1the index of the first value to swap
iIndex2the index of the second value to swap

Implements eLynx::Math::IVector.


The documentation for this class was generated from the following file:

Generated on Thu Dec 9 2010 by doxygen 1.7.2