rcrt::Vec2D Class Reference

#include <Vec2D.h>

List of all members.

Public Member Functions

 Vec2D ()
 Vec2D (float xc, float yc)
 Vec2D (const Vec2D &vec)
virtual ~Vec2D ()
const Vec2Doperator= (const Vec2D &vec)
Vec2D operator+ (const Vec2D &vec) const
Vec2D operator- (const Vec2D &vec) const
float operator * (const Vec2D &vec) const
Vec2D operator * (const float f) const
Vec2D operator/ (const float f) const
float operator[] (int i) const
float & operator[] (int i)
Vec2D abs () const
const Vec2Dnormalize ()
Vec2D normalized () const
float norm () const
float det (const Vec2D &vec) const
const float & x () const
const float & y () const

Private Member Functions

void assign (const Vec2D &vec)

Private Attributes

float values [2]


Detailed Description

Definition at line 7 of file Vec2D.h.


Constructor & Destructor Documentation

rcrt::Vec2D::Vec2D (  ) 

Definition at line 8 of file Vec2D.cpp.

References values.

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

rcrt::Vec2D::Vec2D ( float  xc,
float  yc 
)

Definition at line 14 of file Vec2D.cpp.

References values.

rcrt::Vec2D::Vec2D ( const Vec2D vec  ) 

Definition at line 21 of file Vec2D.cpp.

References assign().

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

Definition at line 27 of file Vec2D.cpp.


Member Function Documentation

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

Definition at line 32 of file Vec2D.cpp.

References values.

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

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

Definition at line 42 of file Vec2D.cpp.

References assign().

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

Definition at line 50 of file Vec2D.cpp.

References values, and Vec2D().

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

Definition at line 57 of file Vec2D.cpp.

References values, and Vec2D().

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

Definition at line 64 of file Vec2D.cpp.

References values.

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

Definition at line 71 of file Vec2D.cpp.

References values, and Vec2D().

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

Definition at line 77 of file Vec2D.cpp.

References values, and Vec2D().

float rcrt::Vec2D::operator[] ( int  i  )  const

Definition at line 83 of file Vec2D.cpp.

References values.

float & rcrt::Vec2D::operator[] ( int  i  ) 

Definition at line 88 of file Vec2D.cpp.

References values.

Vec2D rcrt::Vec2D::abs (  )  const

Definition at line 93 of file Vec2D.cpp.

References values, and Vec2D().

const Vec2D & rcrt::Vec2D::normalize (  ) 

Definition at line 99 of file Vec2D.cpp.

References norm(), and values.

Vec2D rcrt::Vec2D::normalized (  )  const

Definition at line 109 of file Vec2D.cpp.

References norm().

float rcrt::Vec2D::norm (  )  const

Definition at line 115 of file Vec2D.cpp.

References values.

Referenced by normalize(), and normalized().

float rcrt::Vec2D::det ( const Vec2D vec  )  const

Definition at line 120 of file Vec2D.cpp.

References values.

Referenced by rcrt::ConvexQuad::isInside(), and rcrt::Triangle::Triangle().

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

Definition at line 125 of file Vec2D.cpp.

References values.

Referenced by rcrt::Point2D::operator+(), and rcrt::Point2D::operator-().

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

Definition at line 131 of file Vec2D.cpp.

References values.

Referenced by rcrt::Point2D::operator+(), and rcrt::Point2D::operator-().


Member Data Documentation

float rcrt::Vec2D::values[2] [private]

Definition at line 10 of file Vec2D.h.

Referenced by abs(), assign(), det(), norm(), normalize(), operator *(), operator+(), operator-(), operator/(), operator[](), Vec2D(), x(), and y().


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