Vector Class Reference

#include <Vector.h>

List of all members.

Public Member Functions

 Vector (void)
 Vector (double X, double Y, double Z)
 Vector (const Vector &v)
 Vector (Vector spitze, Vector schaft)
Vector operator- (void) const
int operator== (const Vector &v) const
int operator!= (const Vector &v) const
Vector operator+ (const Vector &v) const
Vector operator- (const Vector &v) const
Vector operator * (double fl) const
Vector operator/ (double fl) const
void copyToArray (double *rgfl) const
double length (void) const
double dotProduct (const Vector &b)
Vector crossProduct (const Vector &b)
void rotateX (double angle)
void rotateY (double angle)
void rotateZ (double angle)

Static Public Member Functions

static double clampTo (double min, double max, double Val)

Public Attributes

double x
double y
double z


Detailed Description

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


Constructor & Destructor Documentation

Vector::Vector void   )  [inline]
 

creates a zero vector

Vector::Vector double  X,
double  Y,
double  Z
[inline]
 

creates a vector containing the given values

Vector::Vector const Vector v  )  [inline]
 

creates a new vector from a given vector

Vector::Vector Vector  spitze,
Vector  schaft
[inline]
 

calculates the deviation of two vectors


Member Function Documentation

static double Vector::clampTo double  min,
double  max,
double  Val
[inline, static]
 

rotates a vector by its Z-coordinate

void Vector::copyToArray double *  rgfl  )  const [inline]
 

copies the values of a vector into a given array

Vector Vector::crossProduct const Vector b  )  [inline]
 

calculates the dot product of a vector

double Vector::dotProduct const Vector b  )  [inline]
 

normalizes a vector

double Vector::length void   )  const [inline]
 

returns the length of a vector

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

multiplies each value of a vector by the value of f1

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

checks if two vectors are not equal

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

adds two vectors

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

subtracts two vectors

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

multiplies every value by -1

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

divides each value of a vector by the value of f1

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

checks if two vectors are equal

void Vector::rotateX double  angle  )  [inline]
 

calculates the cross product of a vector

void Vector::rotateY double  angle  )  [inline]
 

rotates a vector by its X-coordinate

void Vector::rotateZ double  angle  )  [inline]
 

rotates a vector by its Y-coordinate


Member Data Documentation

double Vector::x
 

X-coordinate

double Vector::y
 

Y-coordinate

double Vector::z
 

Z-coordinate


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