rcrt::Vec4D Class Reference

#include <Vec4D.h>

List of all members.

Public Member Functions

 Vec4D ()
 Vec4D (float xc, float yc, float zc, float wc)
 Vec4D (const Vec4D &vec)
virtual ~Vec4D ()
const Vec4Doperator= (const Vec4D &vec)
Vec4D operator+ (const Vec4D &vec) const
Vec4D operator- (const Vec4D &vec) const
float operator * (const Vec4D &vec) const
Vec4D operator * (const float f) const
Vec4D operator/ (const float f) const
Vec4D abs () const
const Vec4Dnormalize ()
Vec4D normalized () const
float norm () const
Vec3D getVec3D () const
const float & x () const
const float & y () const
const float & z () const
const float & w () const

Private Member Functions

void assign (const Vec4D &vec)

Private Attributes

float values [4]


Detailed Description

Definition at line 9 of file Vec4D.h.


Constructor & Destructor Documentation

rcrt::Vec4D::Vec4D (  ) 

Definition at line 8 of file Vec4D.cpp.

References values.

Referenced by abs(), operator *(), operator+(), operator-(), and operator/().

rcrt::Vec4D::Vec4D ( float  xc,
float  yc,
float  zc,
float  wc 
)

Definition at line 14 of file Vec4D.cpp.

References values.

rcrt::Vec4D::Vec4D ( const Vec4D vec  ) 

Definition at line 23 of file Vec4D.cpp.

References assign().

rcrt::Vec4D::~Vec4D (  )  [virtual]

Definition at line 29 of file Vec4D.cpp.


Member Function Documentation

void rcrt::Vec4D::assign ( const Vec4D vec  )  [private]

Definition at line 34 of file Vec4D.cpp.

References values.

Referenced by operator=(), and Vec4D().

const Vec4D & rcrt::Vec4D::operator= ( const Vec4D vec  ) 

Definition at line 46 of file Vec4D.cpp.

References assign().

Vec4D rcrt::Vec4D::operator+ ( const Vec4D vec  )  const

Definition at line 54 of file Vec4D.cpp.

References values, and Vec4D().

Vec4D rcrt::Vec4D::operator- ( const Vec4D vec  )  const

Definition at line 63 of file Vec4D.cpp.

References values, and Vec4D().

float rcrt::Vec4D::operator * ( const Vec4D vec  )  const

Definition at line 72 of file Vec4D.cpp.

References values.

Vec4D rcrt::Vec4D::operator * ( const float  f  )  const

Definition at line 81 of file Vec4D.cpp.

References values, and Vec4D().

Vec4D rcrt::Vec4D::operator/ ( const float  f  )  const

Definition at line 87 of file Vec4D.cpp.

References values, and Vec4D().

Vec4D rcrt::Vec4D::abs (  )  const

Definition at line 94 of file Vec4D.cpp.

References values, and Vec4D().

const Vec4D & rcrt::Vec4D::normalize (  ) 

Definition at line 100 of file Vec4D.cpp.

References norm(), and values.

Vec4D rcrt::Vec4D::normalized (  )  const

Definition at line 112 of file Vec4D.cpp.

References norm().

float rcrt::Vec4D::norm (  )  const

Definition at line 118 of file Vec4D.cpp.

References values.

Referenced by normalize(), and normalized().

Vec3D rcrt::Vec4D::getVec3D (  )  const

Definition at line 124 of file Vec4D.cpp.

References values.

const float & rcrt::Vec4D::x (  )  const

Definition at line 130 of file Vec4D.cpp.

References values.

Referenced by rcrt::operator<<().

const float & rcrt::Vec4D::y (  )  const

Definition at line 136 of file Vec4D.cpp.

References values.

Referenced by rcrt::operator<<().

const float & rcrt::Vec4D::z (  )  const

Definition at line 142 of file Vec4D.cpp.

References values.

Referenced by rcrt::operator<<().

const float & rcrt::Vec4D::w (  )  const

Definition at line 148 of file Vec4D.cpp.

References values.

Referenced by rcrt::operator<<().


Member Data Documentation

float rcrt::Vec4D::values[4] [private]

Definition at line 12 of file Vec4D.h.

Referenced by abs(), assign(), getVec3D(), norm(), normalize(), operator *(), operator+(), operator-(), operator/(), Vec4D(), w(), x(), y(), and z().


The documentation for this class was generated from the following files:
Generated on Thu Jan 31 19:32:55 2008 for RenderingCompetitionRayTracer by  doxygen 1.5.3