#include <Point3D.h>
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 Point3D & | operator= (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] |
Definition at line 9 of file Point3D.h.
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 | ) |
rcrt::Point3D::Point3D | ( | const float & | xc, | |
const float & | yc, | |||
const float & | zc | |||
) |
rcrt::Point3D::Point3D | ( | const Point3D & | vec | ) |
rcrt::Point3D::Point3D | ( | const Vec3D & | vec | ) |
rcrt::Point3D::~Point3D | ( | ) | [virtual] |
Definition at line 41 of file Point3D.cpp.
void rcrt::Point3D::assign | ( | const Point3D & | vec | ) | [private] |
Definition at line 46 of file Point3D.cpp.
References values.
Referenced by operator=(), and Point3D().
Definition at line 65 of file Point3D.cpp.
References Point3D(), values, rcrt::Vec3D::x(), rcrt::Vec3D::y(), and rcrt::Vec3D::z().
Definition at line 73 of file Point3D.cpp.
References Point3D(), values, rcrt::Vec3D::x(), rcrt::Vec3D::y(), and rcrt::Vec3D::z().
float rcrt::Point3D::operator[] | ( | int | i | ) | const |
float & rcrt::Point3D::operator[] | ( | int | i | ) |
bool rcrt::Point3D::operator!= | ( | const Point3D & | p | ) | const |
bool rcrt::Point3D::operator== | ( | const Point3D & | p | ) | const |
Point3D rcrt::Point3D::operator * | ( | const float & | f | ) | const |
Point3D rcrt::Point3D::operator/ | ( | const float & | f | ) | const |
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 |
bool rcrt::Point3D::equals | ( | const Point3D & | p | ) | const |
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().
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().