rcrt::Point3D Class Reference

#include <Point3D.h>

List of all members.

Public Member Functions

 Point3D ()
 Point3D (const float &val)
 Point3D (const float &xc, const float &yc, const float &zc)
 Point3D (const Point3D &vec)
 Point3D (const Vec3D &vec)
virtual ~Point3D ()
const Point3Doperator= (const Point3D &p)
Point3D operator+ (const Vec3D &vec) const
Point3D operator- (const Vec3D &vec) const
Vec3D operator+ (const Point3D &p) const
Vec3D operator- (const Point3D &p) const
float operator[] (int i) const
float & operator[] (int i)
bool operator!= (const Point3D &p) const
bool operator== (const Point3D &p) const
Point3D operator * (const float &f) const
Point3D operator/ (const float &f) const
Vec3D getPosVec3D () const
Point3D abs () const
bool equals (const Point3D &p) const
const float & x () const
const float & y () const
const float & z () const

Private Member Functions

void assign (const Point3D &vec)

Private Attributes

float values [3]


Detailed Description

Definition at line 9 of file Point3D.h.


Constructor & Destructor Documentation

rcrt::Point3D::Point3D (  ) 

Definition at line 8 of file Point3D.cpp.

References values.

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

rcrt::Point3D::Point3D ( const float &  val  ) 

Definition at line 14 of file Point3D.cpp.

References values.

rcrt::Point3D::Point3D ( const float &  xc,
const float &  yc,
const float &  zc 
)

Definition at line 20 of file Point3D.cpp.

References values.

rcrt::Point3D::Point3D ( const Point3D vec  ) 

Definition at line 28 of file Point3D.cpp.

References assign().

rcrt::Point3D::Point3D ( const Vec3D vec  ) 

Definition at line 33 of file Point3D.cpp.

References values.

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

Definition at line 41 of file Point3D.cpp.


Member Function Documentation

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

Definition at line 46 of file Point3D.cpp.

References values.

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

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

Definition at line 57 of file Point3D.cpp.

References assign().

Point3D rcrt::Point3D::operator+ ( const Vec3D vec  )  const

Definition at line 65 of file Point3D.cpp.

References Point3D(), values, rcrt::Vec3D::x(), rcrt::Vec3D::y(), and rcrt::Vec3D::z().

Point3D rcrt::Point3D::operator- ( const Vec3D vec  )  const

Definition at line 73 of file Point3D.cpp.

References Point3D(), values, rcrt::Vec3D::x(), rcrt::Vec3D::y(), and rcrt::Vec3D::z().

Vec3D rcrt::Point3D::operator+ ( const Point3D p  )  const

Definition at line 81 of file Point3D.cpp.

References values.

Vec3D rcrt::Point3D::operator- ( const Point3D p  )  const

Definition at line 89 of file Point3D.cpp.

References values.

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

Definition at line 109 of file Point3D.cpp.

References values.

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

Definition at line 114 of file Point3D.cpp.

References values.

bool rcrt::Point3D::operator!= ( const Point3D p  )  const

Definition at line 119 of file Point3D.cpp.

References values.

bool rcrt::Point3D::operator== ( const Point3D p  )  const

Definition at line 125 of file Point3D.cpp.

References values.

Point3D rcrt::Point3D::operator * ( const float &  f  )  const

Definition at line 97 of file Point3D.cpp.

References Point3D(), and values.

Point3D rcrt::Point3D::operator/ ( const float &  f  )  const

Definition at line 103 of file Point3D.cpp.

References Point3D(), and values.

Vec3D rcrt::Point3D::getPosVec3D (  )  const

Definition at line 131 of file Point3D.cpp.

References values.

Referenced by rcrt::AABB::AABB(), and rcrt::AABB::extend().

Point3D rcrt::Point3D::abs (  )  const

Definition at line 137 of file Point3D.cpp.

References Point3D(), and values.

bool rcrt::Point3D::equals ( const Point3D p  )  const

Definition at line 142 of file Point3D.cpp.

References values.

Referenced by rcrt::AABB::equals().

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

Definition at line 151 of file Point3D.cpp.

References values.

Referenced by rcrt::WallMaterial::calcDistNormal(), rcrt::AABB::extend(), rcrt::AABB::getLength(), rcrt::AABB::getMax(), rcrt::AABB::getMin(), rcrt::HCoord4D::HCoord4D(), rcrt::AABB::intersect(), PerlinNoise::noise(), rcrt::Matrix4D::operator *(), rcrt::operator<<(), and rcrt::Triangle::updateBox().

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

Definition at line 157 of file Point3D.cpp.

References values.

Referenced by rcrt::WallMaterial::calcDistNormal(), rcrt::AABB::extend(), rcrt::AABB::getLength(), rcrt::AABB::getMax(), rcrt::AABB::getMin(), rcrt::HCoord4D::HCoord4D(), rcrt::AABB::intersect(), PerlinNoise::noise(), rcrt::Matrix4D::operator *(), rcrt::operator<<(), and rcrt::Triangle::updateBox().

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

Definition at line 163 of file Point3D.cpp.

References values.

Referenced by rcrt::WallMaterial::calcDistNormal(), rcrt::AABB::extend(), rcrt::AABB::getLength(), rcrt::AABB::getMax(), rcrt::AABB::getMin(), rcrt::HCoord4D::HCoord4D(), rcrt::AABB::intersect(), PerlinNoise::noise(), rcrt::Matrix4D::operator *(), rcrt::operator<<(), and rcrt::Triangle::updateBox().


Member Data Documentation

float rcrt::Point3D::values[3] [private]

Definition at line 12 of file Point3D.h.

Referenced by abs(), assign(), equals(), getPosVec3D(), operator *(), operator!=(), operator+(), operator-(), operator/(), operator==(), operator[](), Point3D(), 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