CVector2 Class Reference

#include <Vector.h>

List of all members.

Public Member Functions

 CVector2 ()
 CVector2 (float X, float Y)
 CVector2 (CVector2 spitze, CVector2 schaft)
 CVector2 (float x1, float y1, float x2, float 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 * (float fl) const
CVector2 operator/ (float fl) const
float length (void) const
CVector2 normalize (void) const
float angle (CVector2 v1)
 CVector2 (float X, float Y)
 CVector2 (CVector2 spitze, CVector2 schaft)
 CVector2 (float x1, float y1, float x2, float 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 * (float fl) const
CVector2 operator/ (float fl) const
float length (void) const
CVector2 normalize (void) const
float angle (CVector2 v1)

Public Attributes

float x
float y


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 float  X,
float  Y
[inline]
 

creates a vector containing the given values

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

calculates the deviation of two vectors

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

calculates the deviation of two vectors


Member Function Documentation

float CVector2::angle CVector2  v1  )  [inline]
 

returns arc cosinus of a vector

float CVector2::length void   )  const [inline]
 

returns the length of a vector

CVector2 CVector2::normalize void   )  const [inline]
 

normalizes a vector

CVector2 CVector2::operator * float  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/ float  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 files:
Generated on Wed Dec 7 14:42:11 2005 for VisUE by  doxygen 1.4.5