#include <Vec2D.h>
Public Member Functions | |
Vec2D () | |
Vec2D (float xc, float yc) | |
Vec2D (const Vec2D &vec) | |
virtual | ~Vec2D () |
const Vec2D & | operator= (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 Vec2D & | normalize () |
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] |
Definition at line 7 of file Vec2D.h.
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 | |||
) |
rcrt::Vec2D::Vec2D | ( | const Vec2D & | vec | ) |
void rcrt::Vec2D::assign | ( | const Vec2D & | vec | ) | [private] |
float rcrt::Vec2D::operator * | ( | const Vec2D & | vec | ) | const |
Vec2D rcrt::Vec2D::operator * | ( | const float | f | ) | const |
Vec2D rcrt::Vec2D::operator/ | ( | const float | f | ) | const |
float rcrt::Vec2D::operator[] | ( | int | i | ) | const |
float & rcrt::Vec2D::operator[] | ( | int | i | ) |
Vec2D rcrt::Vec2D::abs | ( | ) | const |
const Vec2D & rcrt::Vec2D::normalize | ( | ) |
Vec2D rcrt::Vec2D::normalized | ( | ) | const |
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-().
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().