a 4d vector used together with Matrix4x4 to represent the OpenGL Matrix Stack More...
#include <vector4.h>
Public Member Functions | |
bool | operator!= (const Vector4 &other) const |
bool | operator!= (const Vector4 &other) const |
Vector4 | operator* (double x) const |
Vector4 | operator* (double x) const |
Vector4 & | operator*= (double x) |
Vector4 & | operator*= (double x) |
Vector4 | operator+ (const Vector4 &other) const |
Vector4 | operator+ (const Vector4 &other) const |
Vector4 & | operator+= (const Vector4 &other) |
Vector4 & | operator+= (const Vector4 &other) |
Vector4 | operator- (const Vector4 &other) const |
Vector4 | operator- (const Vector4 &other) const |
Vector4 | operator- () const |
Vector4 | operator- () const |
Vector4 & | operator-= (const Vector4 &other) |
Vector4 & | operator-= (const Vector4 &other) |
Vector4 | operator/ (double x) const |
Vector4 | operator/ (double x) const |
Vector4 & | operator/= (double x) |
Vector4 & | operator/= (double x) |
Vector4 & | operator= (const Vector4 &other) |
Vector4 & | operator= (const Vector4 &other) |
bool | operator== (const Vector4 &other) const |
bool | operator== (const Vector4 &other) const |
double & | operator[] (unsigned int m) throw (std::runtime_error) |
double & | operator[] (unsigned int m) throw (std::runtime_error) |
const double & | operator[] (unsigned int m) const throw (std::runtime_error) |
const double & | operator[] (unsigned int m) const throw (std::runtime_error) |
Vector4 () | |
Vector4 () | |
Vector4 (const Vector4 &other) | |
Vector4 (const Vector4 &other) | |
Vector4 (double d1, double d2, double d3, double d4) | |
Vector4 (double d1, double d2, double d3, double d4) | |
Vector4 (const double *data) | |
Vector4 (const double *data) | |
~Vector4 () | |
~Vector4 () | |
Protected Member Functions | |
void | copy (const Vector4 &other) |
void | copy (const Vector4 &other) |
Protected Attributes | |
double | _data [4] |
array that represents the vector elems | |
Friends | |
Vector4 | operator* (double x, const Vector4 &v) |
Vector4 | operator* (double x, const Vector4 &v) |
Vector4 | operator/ (double x, const Vector4 &v) |
Vector4 | operator/ (double x, const Vector4 &v) |
a 4d vector used together with Matrix4x4 to represent the OpenGL Matrix Stack
Definition at line 30 of file include/hogman_minimal/graph_viewer/vector4.h.
Definition at line 28 of file vector4.cpp.
Definition at line 33 of file vector4.cpp.
vrml::Vector4::Vector4 | ( | const Vector4 & | other | ) |
Definition at line 37 of file vector4.cpp.
vrml::Vector4::Vector4 | ( | double | d1, |
double | d2, | ||
double | d3, | ||
double | d4 | ||
) |
Definition at line 158 of file vector4.cpp.
vrml::Vector4::Vector4 | ( | const double * | data | ) | [explicit] |
Definition at line 47 of file vector4.cpp.
vrml::Vector4::Vector4 | ( | const Vector4 & | other | ) |
vrml::Vector4::Vector4 | ( | double | d1, |
double | d2, | ||
double | d3, | ||
double | d4 | ||
) |
vrml::Vector4::Vector4 | ( | const double * | data | ) | [explicit] |
void vrml::Vector4::copy | ( | const Vector4 & | other | ) | [protected] |
Definition at line 42 of file vector4.cpp.
void vrml::Vector4::copy | ( | const Vector4 & | other | ) | [protected] |
Definition at line 70 of file vector4.cpp.
Vector4 vrml::Vector4::operator* | ( | double | x | ) | const |
Definition at line 91 of file vector4.cpp.
Vector4 vrml::Vector4::operator* | ( | double | x | ) | const |
Vector4& vrml::Vector4::operator*= | ( | double | x | ) |
Vector4 & vrml::Vector4::operator*= | ( | double | x | ) |
Definition at line 127 of file vector4.cpp.
Definition at line 75 of file vector4.cpp.
Definition at line 115 of file vector4.cpp.
Definition at line 83 of file vector4.cpp.
Vector4 vrml::Vector4::operator- | ( | void | ) | const |
Definition at line 107 of file vector4.cpp.
Vector4 vrml::Vector4::operator- | ( | ) | const |
Definition at line 121 of file vector4.cpp.
Vector4 vrml::Vector4::operator/ | ( | double | x | ) | const |
Definition at line 99 of file vector4.cpp.
Vector4 vrml::Vector4::operator/ | ( | double | x | ) | const |
Vector4& vrml::Vector4::operator/= | ( | double | x | ) |
Vector4 & vrml::Vector4::operator/= | ( | double | x | ) |
Definition at line 133 of file vector4.cpp.
Definition at line 52 of file vector4.cpp.
Definition at line 60 of file vector4.cpp.
double& vrml::Vector4::operator[] | ( | unsigned int | m | ) | throw (std::runtime_error) [inline] |
Definition at line 40 of file include/hogman_minimal/graph_viewer/vector4.h.
double& vrml::Vector4::operator[] | ( | unsigned int | m | ) | throw (std::runtime_error) [inline] |
Definition at line 40 of file src/graph_viewer/vector4.h.
const double& vrml::Vector4::operator[] | ( | unsigned int | m | ) | const throw (std::runtime_error) [inline] |
Definition at line 47 of file include/hogman_minimal/graph_viewer/vector4.h.
const double& vrml::Vector4::operator[] | ( | unsigned int | m | ) | const throw (std::runtime_error) [inline] |
Definition at line 47 of file src/graph_viewer/vector4.h.
Definition at line 139 of file vector4.cpp.
Definition at line 139 of file vector4.cpp.
Definition at line 144 of file vector4.cpp.
Definition at line 144 of file vector4.cpp.
double vrml::Vector4::_data [protected] |
array that represents the vector elems
Definition at line 74 of file include/hogman_minimal/graph_viewer/vector4.h.