CIvfVec3d Class Reference

#include <ivfmath/IvfVec3d.h>

Inheritance diagram for CIvfVec3d:

CIvfMathBase CIvfPoint3d List of all members.

Public Member Functions

 CIvfVec3d ()
 CIvfVec3d (double vx, double vy, double vz)
 CIvfVec3d (CIvfVec3d &v)
virtual ~CIvfVec3d ()
 IvfClassInfo ("CIvfVec3d", CIvfMathBase)
void rotate (CIvfVec3d &axis, double angle)
void normalize ()
double length ()
void negate ()
void print (ostream &out)
void setFromPoints (CIvfVec3d &pos, CIvfVec3d &target)
void add (double dx, double dy, double dz)
void getEulerAngles (double &pitch, double &heading)
void setComponents (double vx, double vy, double vz)
void getComponents (double &vx, double &vy, double &vz)
void setComponents (const double *v)
void getComponents (double *v)
double * getComponents ()
void setZ (double value)
void setY (double value)
void setX (double value)
CIvfVec3doperator+= (CIvfVec3d &a)
CIvfVec3doperator-= (CIvfVec3d &a)
CIvfVec3doperator= (CIvfVec3d &a)
double operator[] (const int idx)
bool operator== (CIvfVec3d &a)
bool operator!= (CIvfVec3d &a)

Detailed Description

3d vector class.

CIvfVec3d implements a 3d vector and associated operations and arithmetic.

Author:
Jonas Lindemann
Examples:

lighting.cpp, and math.cpp.

Definition at line 41 of file IvfVec3d.h.


Constructor & Destructor Documentation

CIvfVec3d::CIvfVec3d  ) 
 

CIvfVec3d constructor

CIvfVec3d::CIvfVec3d double  vx,
double  vy,
double  vz
 

CIvfVec3d constructor

CIvfVec3d::CIvfVec3d CIvfVec3d v  ) 
 

CIvfVec3d copy constructor

virtual CIvfVec3d::~CIvfVec3d  )  [virtual]
 

CIvfVec3d destructor


Member Function Documentation

void CIvfVec3d::add double  dx,
double  dy,
double  dz
 

Add components to vector (obsolete)

double* CIvfVec3d::getComponents  ) 
 

Get pointer to vector components

void CIvfVec3d::getComponents double *  v  ) 
 

Get vector components

void CIvfVec3d::getComponents double &  vx,
double &  vy,
double &  vz
 

Get vector components

Examples:
lighting.cpp.

void CIvfVec3d::getEulerAngles double &  pitch,
double &  heading
 

Calculate euler angles

double CIvfVec3d::length  ) 
 

Return vector length

void CIvfVec3d::negate  ) 
 

Negate vector

void CIvfVec3d::normalize  ) 
 

Normalize vector

void CIvfVec3d::print ostream &  out  ) 
 

Print vector to output stream

Examples:
math.cpp.

void CIvfVec3d::rotate CIvfVec3d axis,
double  angle
 

Rotate vector angle about axis

Examples:
math.cpp.

void CIvfVec3d::setComponents const double *  v  ) 
 

Set vector components

void CIvfVec3d::setComponents double  vx,
double  vy,
double  vz
 

Set vector components

void CIvfVec3d::setFromPoints CIvfVec3d pos,
CIvfVec3d target
 

Set vector from two points

void CIvfVec3d::setX double  value  ) 
 

Set x component

void CIvfVec3d::setY double  value  ) 
 

Set y component

void CIvfVec3d::setZ double  value  ) 
 

Set z component


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 15:37:00 2006 for Interactive Visualisation Framework - Ivf++ by  doxygen 1.4.6-NO