Vec2D Struct Reference

Vector in 2D. More...

List of all members.

Public Member Functions

 Vec2D (double x, double y)
 constructor by x and y
void operator= (const Vec2D &vec2D)
 assignment e.g. vec1 = vec2;
double operator * (const Vec2D &vec2D) const
 arithmetic scalar product, e.g. val = vec1 * vec2;
const Vec2Doperator * (double val) const
 arithmetic vector multiplication, e.g. vec1 = val * vec2 (also working: vec1 = vec2 * val; )
const Vec2Doperator+ (const Vec2D &vec2D) const
 arithmetic addition, e.g. vec1 = vec2 + vec3;
const Vec2Doperator- (const Vec2D &vec2D) const
 arithmetic subtraction, e.g. vec1 = vec2 - vec3;


Detailed Description

Vector in 2D.


Constructor & Destructor Documentation

Vec2D::Vec2D double  x,
double  y
 

constructor by x and y


Member Function Documentation

void Vec2D::operator= const Vec2D vec2D  ) 
 

assignment e.g. vec1 = vec2;

double Vec2D::operator * const Vec2D vec2D  )  const
 

arithmetic scalar product, e.g. val = vec1 * vec2;

const Vec2D& Vec2D::operator * double  val  )  const
 

arithmetic vector multiplication, e.g. vec1 = val * vec2 (also working: vec1 = vec2 * val; )

const Vec2D& Vec2D::operator+ const Vec2D vec2D  )  const
 

arithmetic addition, e.g. vec1 = vec2 + vec3;

const Vec2D& Vec2D::operator- const Vec2D vec2D  )  const
 

arithmetic subtraction, e.g. vec1 = vec2 - vec3;


Generated on Fri Mar 11 15:05:15 2011 for AiGrid2D by  doxygen 1.4.6-NO