CVector Class Reference

#include <vector.h>

Inheritance diagram for CVector:

CVector2d CVector3d

List of all members.

Public Member Functions

 CVector (size_t size)
 CVector (const CVector &v)
real norm (void) const
CVector unit (void) const
bool operator== (const CVector &v) const
bool operator!= (const CVector &v) const
CVector operator+ (const CVector &v2) const
CVector operator- () const
CVector operator- (const CVector &v2) const
CVector operator* (const real &lambda) const
real operator* (const CVector &v2) const


Detailed Description

Real-valued vector

Definition at line 40 of file vector.h.


Member Function Documentation

real CVector::norm ( void   )  const [inline]

CVector CVector::unit ( void   )  const [inline]

bool CVector::operator== ( const CVector v  )  const [inline]

Tests vectors for equality.

Definition at line 70 of file vector.h.

bool CVector::operator!= ( const CVector v  )  const [inline]

Tests vectors for non-equality.

Definition at line 84 of file vector.h.

CVector CVector::operator+ ( const CVector v2  )  const [inline]

Binary '+' operator (addition)

Definition at line 91 of file vector.h.

CVector CVector::operator- (  )  const [inline]

Unary '-' operator (return opposite)

Definition at line 105 of file vector.h.

CVector CVector::operator- ( const CVector v2  )  const [inline]

Binary '-' operator (return difference)

Definition at line 115 of file vector.h.

CVector CVector::operator* ( const real &  lambda  )  const [inline]

Binary '* (multiply a vector by a real)

Definition at line 129 of file vector.h.

real CVector::operator* ( const CVector v2  )  const [inline]

Dot (real) product.

Definition at line 139 of file vector.h.


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

Generated on Sun Mar 22 21:38:32 2009 for Sailcut CAD by  doxygen 1.5.6