#include <Vec4D.h>
Public Member Functions | |
Vec4D () | |
Vec4D (float xc, float yc, float zc, float wc) | |
Vec4D (const Vec4D &vec) | |
virtual | ~Vec4D () |
const Vec4D & | operator= (const Vec4D &vec) |
Vec4D | operator+ (const Vec4D &vec) const |
Vec4D | operator- (const Vec4D &vec) const |
float | operator * (const Vec4D &vec) const |
Vec4D | operator * (const float f) const |
Vec4D | operator/ (const float f) const |
Vec4D | abs () const |
const Vec4D & | normalize () |
Vec4D | normalized () const |
float | norm () const |
Vec3D | getVec3D () const |
const float & | x () const |
const float & | y () const |
const float & | z () const |
const float & | w () const |
Private Member Functions | |
void | assign (const Vec4D &vec) |
Private Attributes | |
float | values [4] |
Definition at line 9 of file Vec4D.h.
rcrt::Vec4D::Vec4D | ( | ) |
Definition at line 8 of file Vec4D.cpp.
References values.
Referenced by abs(), operator *(), operator+(), operator-(), and operator/().
rcrt::Vec4D::Vec4D | ( | float | xc, | |
float | yc, | |||
float | zc, | |||
float | wc | |||
) |
rcrt::Vec4D::Vec4D | ( | const Vec4D & | vec | ) |
void rcrt::Vec4D::assign | ( | const Vec4D & | vec | ) | [private] |
float rcrt::Vec4D::operator * | ( | const Vec4D & | vec | ) | const |
Vec4D rcrt::Vec4D::operator * | ( | const float | f | ) | const |
Vec4D rcrt::Vec4D::operator/ | ( | const float | f | ) | const |
Vec4D rcrt::Vec4D::abs | ( | ) | const |
const Vec4D & rcrt::Vec4D::normalize | ( | ) |
Vec4D rcrt::Vec4D::normalized | ( | ) | const |
float rcrt::Vec4D::norm | ( | ) | const |
Definition at line 118 of file Vec4D.cpp.
References values.
Referenced by normalize(), and normalized().
const float & rcrt::Vec4D::x | ( | ) | const |
const float & rcrt::Vec4D::y | ( | ) | const |
const float & rcrt::Vec4D::z | ( | ) | const |
const float & rcrt::Vec4D::w | ( | ) | const |
float rcrt::Vec4D::values[4] [private] |
Definition at line 12 of file Vec4D.h.
Referenced by abs(), assign(), getVec3D(), norm(), normalize(), operator *(), operator+(), operator-(), operator/(), Vec4D(), w(), x(), y(), and z().