rcrt::Point2D Class Reference

#include <Point2D.h>

List of all members.

Public Member Functions

 Point2D ()
 Point2D (float xc, float yc)
 Point2D (const Point2D &p)
virtual ~Point2D ()
const Point2Doperator= (const Point2D &p)
Point2D operator+ (const Vec2D &vec) const
Point2D operator- (const Vec2D &vec) const
Vec2D operator+ (const Point2D &p) const
Vec2D operator- (const Point2D &p) const
float operator[] (int i) const
float & operator[] (int i)
Point2D operator * (const float f) const
Point2D operator/ (const float f) const
Vec2D getPosVec2D () const
Point2D abs () const
const float & x () const
const float & y () const

Private Member Functions

void assign (const Point2D &vec)

Private Attributes

float values [2]


Detailed Description

Definition at line 10 of file Point2D.h.


Constructor & Destructor Documentation

rcrt::Point2D::Point2D (  ) 

Definition at line 8 of file Point2D.cpp.

References values.

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

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

Definition at line 14 of file Point2D.cpp.

References values.

rcrt::Point2D::Point2D ( const Point2D p  ) 

Definition at line 21 of file Point2D.cpp.

References assign().

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

Definition at line 27 of file Point2D.cpp.


Member Function Documentation

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

Definition at line 32 of file Point2D.cpp.

References values.

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

const Point2D & rcrt::Point2D::operator= ( const Point2D p  ) 

Definition at line 42 of file Point2D.cpp.

References assign().

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

Definition at line 50 of file Point2D.cpp.

References Point2D(), values, rcrt::Vec2D::x(), and rcrt::Vec2D::y().

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

Definition at line 57 of file Point2D.cpp.

References Point2D(), values, rcrt::Vec2D::x(), and rcrt::Vec2D::y().

Vec2D rcrt::Point2D::operator+ ( const Point2D p  )  const

Definition at line 64 of file Point2D.cpp.

References values.

Vec2D rcrt::Point2D::operator- ( const Point2D p  )  const

Definition at line 71 of file Point2D.cpp.

References values.

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

Definition at line 90 of file Point2D.cpp.

References values.

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

Definition at line 95 of file Point2D.cpp.

References values.

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

Definition at line 78 of file Point2D.cpp.

References Point2D(), and values.

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

Definition at line 84 of file Point2D.cpp.

References Point2D(), and values.

Vec2D rcrt::Point2D::getPosVec2D (  )  const

Definition at line 101 of file Point2D.cpp.

References values.

Point2D rcrt::Point2D::abs (  )  const

Definition at line 107 of file Point2D.cpp.

References Point2D(), and values.

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

Definition at line 113 of file Point2D.cpp.

References values.

Referenced by rcrt::ImageTexture::getBump(), rcrt::ImageTexture::getColor(), rcrt::Intersection::getGNormalL(), rcrt::Intersection::getGNormalW(), rcrt::PerspectiveCamera::getRay(), rcrt::AreaLight::getSample(), rcrt::Intersection::getSNormalL(), rcrt::Intersection::getSNormalW(), rcrt::Triangle::getUV(), rcrt::Intersection::getUV(), rcrt::AffineObject::intersect(), rcrt::operator<<(), and rcrt::AreaLightSampler::subdivide().

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

Definition at line 119 of file Point2D.cpp.

References values.

Referenced by rcrt::ImageTexture::getBump(), rcrt::ImageTexture::getColor(), rcrt::Intersection::getGNormalL(), rcrt::Intersection::getGNormalW(), rcrt::PerspectiveCamera::getRay(), rcrt::AreaLight::getSample(), rcrt::Intersection::getSNormalL(), rcrt::Intersection::getSNormalW(), rcrt::Triangle::getUV(), rcrt::Intersection::getUV(), rcrt::AffineObject::intersect(), rcrt::operator<<(), and rcrt::AreaLightSampler::subdivide().


Member Data Documentation

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

Definition at line 13 of file Point2D.h.

Referenced by abs(), assign(), getPosVec2D(), operator *(), operator+(), operator-(), operator/(), operator[](), Point2D(), 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