Vec4 Class Reference

#include <vec4.hh>


Public Member Functions

 Vec4 ()
 Vec4 (Real x, Real y, Real z, Real w)
 Vec4 (const Vec4 &v)
 Vec4 (const Vec2 &v)
 Vec4 (const Vec3 &v)
 Vec4 (const Real[4])
Vec4operator= (const Vec4 &v)
bool operator== (const Vec4 &rhs) const
Realoperator[] (std::size_t indx)
const Realoperator[] (std::size_t indx) const
Vec4operator+= (const Vec4 &rhs)
Vec4operator+= (Real d)
Vec4operator-= (const Vec4 &rhs)
Vec4operator-= (Real d)
Vec4 operator- () const
Vec4operator*= (Real d)
Vec4operator/= (Real d)
RealData ()
const RealData () const


Detailed Description

Definition at line 40 of file vec4.hh.


Constructor & Destructor Documentation

Vec4 (  ) 

Default initialization, all components are set to zero.

Vec4 ( Real  x,
Real  y,
Real  z,
Real  w 
)

Initialization with x, y and z component.

Vec4 ( const Vec4 v  ) 

copy ctor

Vec4 ( const Vec2 v  ) 

(implicit) initialization with 2D vector

Vec4 ( const Vec3 v  ) 

(implicit) initialization with 3D vector

Vec4 ( const   Real[4]  )  [explicit]

explicit initialization with an array of doubles


Member Function Documentation

const Real* Data (  )  const [inline]

Definition at line 95 of file vec4.hh.

Real* Data (  )  [inline]

Definition at line 94 of file vec4.hh.

Vec4& operator*= ( Real  d  ) 

multipliable

Vec4& operator+= ( Real  d  ) 

Vec4& operator+= ( const Vec4 rhs  ) 

addable op

Vec4 operator- (  )  const

negateable

Vec4& operator-= ( Real  d  ) 

Vec4& operator-= ( const Vec4 rhs  ) 

subtractable op

Vec4& operator/= ( Real  d  ) 

dividable

Vec4& operator= ( const Vec4 v  ) 

assignement op

bool operator== ( const Vec4 rhs  )  const

comparable

const Real& operator[] ( std::size_t  indx  )  const

const element access

Real& operator[] ( std::size_t  indx  ) 

element access


The documentation for this class was generated from the following file:

Generated on Fri Jul 2 14:23:06 2010 for OpenStructure by  doxygen 1.5.8