#include <vector4.h>
Public Methods | |
| Vector4 () | |
| Default constructor. | |
| Vector4 (const Vector4 &v) | |
| Copy constructor. | |
| Vector4 (const real x, const real y, const real z, const real w=0.0) | |
| Constructor. | |
| Vector4 (const float *v) | |
| Constructor. | |
| Vector4 (const double *v) | |
| Constructor. | |
| Vector4 (const std::string &str) | |
| Construct from string. | |
| real & | x () |
| x co-ordinate | |
| const real & | x () const |
| x co-ordinate | |
| real & | y () |
| y co-ordinate | |
| const real & | y () const |
| y co-ordinate | |
| real & | z () |
| z co-ordinate | |
| const real & | z () const |
| z co-ordinate | |
| real & | w () |
| w co-ordinate | |
| const real & | w () const |
| w co-ordinate | |
| real & | operator[] (const int i) |
| i'th co-ordinate | |
| const real & | operator[] (const int i) const |
| i'th co-ordinate | |
| operator real * () | |
| Access as array. | |
Protected Attributes | |
| real | _vector [4] |
| Storage for x, y and z components. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Vector4 &x) |
| Output vector to stream. | |
| std::istream & | operator>> (std::istream &is, Vector4 &x) |
| Input vector from stream. | |
Definition at line 224 of file umatrix.cpp.
1.2.18