#include <Point2D.h>
Public Member Functions | |
Point2D () | |
Point2D (float xc, float yc) | |
Point2D (const Point2D &p) | |
virtual | ~Point2D () |
const Point2D & | operator= (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] |
Definition at line 10 of file Point2D.h.
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 | |||
) |
rcrt::Point2D::Point2D | ( | const Point2D & | p | ) |
rcrt::Point2D::~Point2D | ( | ) | [virtual] |
Definition at line 27 of file Point2D.cpp.
void rcrt::Point2D::assign | ( | const Point2D & | vec | ) | [private] |
Definition at line 32 of file Point2D.cpp.
References values.
Referenced by operator=(), and Point2D().
Definition at line 50 of file Point2D.cpp.
References Point2D(), values, rcrt::Vec2D::x(), and rcrt::Vec2D::y().
Definition at line 57 of file Point2D.cpp.
References Point2D(), values, rcrt::Vec2D::x(), and rcrt::Vec2D::y().
float rcrt::Point2D::operator[] | ( | int | i | ) | const |
float & rcrt::Point2D::operator[] | ( | int | i | ) |
Point2D rcrt::Point2D::operator * | ( | const float | f | ) | const |
Point2D rcrt::Point2D::operator/ | ( | const float | f | ) | const |
Vec2D rcrt::Point2D::getPosVec2D | ( | ) | const |
Point2D rcrt::Point2D::abs | ( | ) | const |
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().
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().