IVT
CVecd Class Reference

Data structure and operations for calculating with vectors of arbitrary dimension. More...

#include <Vecd.h>

Public Member Functions

 CVecd ()
 
 CVecd (int nLength)
 
 CVecd (double dX1, double dX2)
 
 CVecd (const CVecd &v)
 
 ~CVecd ()
 
CVecdoperator= (const CVecd &v)
 
CVecd operator+ (const CVecd &v)
 
CVecd operator- (const CVecd &v)
 
double operator* (const CVecd &v)
 
double & operator[] (const int n) const
 
double Length ()
 
void SetSize (int nSize)
 
int GetSize () const
 

Detailed Description

Data structure and operations for calculating with vectors of arbitrary dimension.

Definition at line 54 of file Vecd.h.

Constructor & Destructor Documentation

CVecd::CVecd ( )

Definition at line 58 of file Vecd.cpp.

CVecd::CVecd ( int  nLength)

Definition at line 64 of file Vecd.cpp.

CVecd::CVecd ( double  dX1,
double  dX2 
)

Definition at line 71 of file Vecd.cpp.

CVecd::CVecd ( const CVecd v)

Definition at line 81 of file Vecd.cpp.

CVecd::~CVecd ( )

Definition at line 90 of file Vecd.cpp.

Member Function Documentation

int CVecd::GetSize ( ) const
inline

Definition at line 79 of file Vecd.h.

double CVecd::Length ( )

Definition at line 191 of file Vecd.cpp.

double CVecd::operator* ( const CVecd v)

Definition at line 144 of file Vecd.cpp.

CVecd CVecd::operator+ ( const CVecd v)

Definition at line 110 of file Vecd.cpp.

CVecd CVecd::operator- ( const CVecd v)

Definition at line 127 of file Vecd.cpp.

CVecd & CVecd::operator= ( const CVecd v)

Definition at line 101 of file Vecd.cpp.

double & CVecd::operator[] ( const int  n) const

Definition at line 161 of file Vecd.cpp.

void CVecd::SetSize ( int  nSize)

Definition at line 173 of file Vecd.cpp.


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