representation d'un vecteur 3d.
More...
#include <vec.h>
|
| | Vector () |
| | constructeur par defaut.
|
| | Vector (const float _x, const float _y, const float _z) |
| | Vector (const Point &a, const Point &b) |
| | cree le vecteur ab.
|
| | Vector (const vec3 &v) |
| | cree un vecteur a partir des coordonnees du vecteur generique (v.x, v.y, v.z).
|
| | Vector (const vec4 &v) |
| | Vector (const Point &a) |
| | cree un vecteur a partir des coordonnes du point (a.x, a.y, a.z).
|
| float | operator() (const unsigned int i) const |
| | renvoie la ieme composante du vecteur.
|
| float & | operator() (const unsigned int i) |
representation d'un vecteur 3d.
Definition at line 66 of file vec.h.
◆ Vector() [1/3]
constructeur par defaut.
Definition at line 69 of file vec.h.
◆ Vector() [2/3]
| Vector::Vector |
( |
const float | _x, |
|
|
const float | _y, |
|
|
const float | _z ) |
|
inline |
Definition at line 70 of file vec.h.
70: x(_x), y(_y), z(_z) {}
◆ Vector() [3/3]
| Vector::Vector |
( |
const Point & | a, |
|
|
const Point & | b ) |
|
inlineexplicit |
cree le vecteur ab.
Definition at line 73 of file vec.h.
73: x(b.x - a.x), y(b.y - a.y), z(b.z - a.z) {}
Definition at line 85 of file vec.h.
Definition at line 85 of file vec.h.
Definition at line 85 of file vec.h.
The documentation for this struct was generated from the following file: