vecteur generique 4d, ou 3d homogene, utilitaire.
More...
#include <vec.h>
|
| | vec4 () |
| | constructeur par defaut.
|
| |
| | vec4 (const float _x, const float _y, const float _z, const float _w) |
| |
| | vec4 (const vec2 &v, const float _z=0, const float _w=0) |
| | constructeur par defaut.
|
| |
| | vec4 (const vec3 &v, const float _w=0) |
| | constructeur par defaut.
|
| |
| | vec4 (const Point &a) |
| | cree un vecteur generique a partir des coordonnees du point a, (a.x, a.y, a.z, 1).
|
| |
| | vec4 (const Vector &v) |
| | cree un vecteur generique a partir des coordonnees du vecteur v, (v.x, v.y, v.z, 0).
|
| |
| float | operator() (const unsigned int i) const |
| | renvoie la ieme composante du vecteur.
|
| |
| float & | operator() (const unsigned int i) |
| |
|
| float | x |
| |
| float | y |
| |
| float | z |
| |
| float | w |
| |
vecteur generique 4d, ou 3d homogene, utilitaire.
Definition at line 170 of file vec.h.
◆ vec4() [1/4]
constructeur par defaut.
Definition at line 173 of file vec.h.
173: x(0), y(0), z(0), w(0) {}
◆ vec4() [2/4]
| vec4::vec4 |
( |
const float |
_x, |
|
|
const float |
_y, |
|
|
const float |
_z, |
|
|
const float |
_w |
|
) |
| |
|
inline |
Definition at line 174 of file vec.h.
174: x(_x), y(_y), z(_z), w(_w) {}
◆ vec4() [3/4]
| vec4::vec4 |
( |
const vec2 & |
v, |
|
|
const float |
_z = 0, |
|
|
const float |
_w = 0 |
|
) |
| |
|
inline |
constructeur par defaut.
Definition at line 176 of file vec.h.
176: x(v.x), y(v.y), z(_z), w(_w) {}
◆ vec4() [4/4]
| vec4::vec4 |
( |
const vec3 & |
v, |
|
|
const float |
_w = 0 |
|
) |
| |
|
inline |
constructeur par defaut.
Definition at line 178 of file vec.h.
178: x(v.x), y(v.y), z(v.z), w(_w) {}
◆ operator()() [1/2]
| float vec4::operator() |
( |
const unsigned int |
i | ) |
const |
|
inline |
renvoie la ieme composante du vecteur.
Definition at line 186 of file vec.h.
◆ operator()() [2/2]
| float & vec4::operator() |
( |
const unsigned int |
i | ) |
|
|
inline |
The documentation for this struct was generated from the following file: