gKit3
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members

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 57 of file vec.h.

Constructor & Destructor Documentation

◆ Vector() [1/3]

Vector::Vector ( )
inline

constructeur par defaut.

Definition at line 60 of file vec.h.

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

◆ Vector() [2/3]

Vector::Vector ( const float  _x,
const float  _y,
const float  _z 
)
inline

Definition at line 61 of file vec.h.

61: 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 63 of file vec.h.

63: 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 75 of file vec.h.

◆ y

float Vector::y

Definition at line 75 of file vec.h.

◆ z

float Vector::z

Definition at line 75 of file vec.h.


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