CVector2 Class Reference

#include <Vector.h>

List of all members.

Public Member Functions

 CVector2 ()
 CVector2 (double X, double Y)
 CVector2 (CVector2 spitze, CVector2 schaft)
 CVector2 (double x1, double y1, double x2, double y2)
CVector2 operator- (void) const
int operator== (const CVector2 &v) const
int operator!= (const CVector2 &v) const
CVector2 operator+ (const CVector2 &v) const
CVector2 operator- (const CVector2 &v) const
CVector2 operator * (double fl) const
CVector2 operator/ (double fl) const
double length (void) const
CVector2 normalize (void) const
double angle (CVector2 v1)


Detailed Description

A class for defining Vectors with two entries, so that mathematical operations like +, -, ... can be evaluated.


Constructor & Destructor Documentation

CVector2::CVector2  )  [inline]
 

creates a zero vector

CVector2::CVector2 double  X,
double  Y
[inline]
 

creates a vector containing the given values

CVector2::CVector2 CVector2  spitze,
CVector2  schaft
[inline]
 

calculates the deviation of two vectors

CVector2::CVector2 double  x1,
double  y1,
double  x2,
double  y2
[inline]
 

calculates the deviation of two vectors


Member Function Documentation

double CVector2::angle CVector2  v1  )  [inline]
 

returns arc cosinus of a vector

double CVector2::length void   )  const [inline]
 

returns the length of a vector

CVector2 CVector2::normalize void   )  const [inline]
 

normalizes a vector

CVector2 CVector2::operator * double  fl  )  const [inline]
 

multiplies each value of a vector by the value of f1

int CVector2::operator!= const CVector2 v  )  const [inline]
 

checks if two vectors are not equal

CVector2 CVector2::operator+ const CVector2 v  )  const [inline]
 

adds two vectors

CVector2 CVector2::operator- const CVector2 v  )  const [inline]
 

subtracts two vectors

CVector2 CVector2::operator- void   )  const [inline]
 

multiplies every value by -1

CVector2 CVector2::operator/ double  fl  )  const [inline]
 

divides each value of a vector by the value of f1

int CVector2::operator== const CVector2 v  )  const [inline]
 

checks if two vectors are equal


The documentation for this class was generated from the following file:
Generated on Wed Jan 18 14:33:42 2006 for VisUE by  doxygen 1.4.6-NO