gKit2 light
Loading...
Searching...
No Matches

representation d'un vecteur 3d. More...

#include <vec.h>

Public Member Functions

 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)

Public Attributes

float x
float y
float z

Detailed Description

representation d'un vecteur 3d.

Definition at line 66 of file vec.h.

Constructor & Destructor Documentation

◆ Vector() [1/3]

Vector::Vector ( )
inline

constructeur par defaut.

Definition at line 69 of file vec.h.

69: x(0), y(0), z(0) {}

◆ 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) {}

Member Data Documentation

◆ x

float Vector::x

Definition at line 85 of file vec.h.

◆ y

float Vector::y

Definition at line 85 of file vec.h.

◆ z

float Vector::z

Definition at line 85 of file vec.h.


The documentation for this struct was generated from the following file: