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

representation d'un point 3d. More...

#include <vec.h>

Public Member Functions

 Point ()
 constructeur par defaut.
 
 Point (const float _x, const float _y, const float _z)
 
 Point (const vec3 &v)
 cree un point a partir des coordonnees du vecteur generique (v.x, v.y, v.z).
 
 Point (const vec4 &v)
 
 Point (const Vector &v)
 cree un point a partir des coordonnes du vecteur (v.x, v.y, v.z).
 
float operator() (const unsigned int i) const
 renvoie la ieme composante du point.
 
float & operator() (const unsigned int i)
 

Public Attributes

float x
 
float y
 
float z
 

Detailed Description

representation d'un point 3d.

Definition at line 20 of file vec.h.

Constructor & Destructor Documentation

◆ Point() [1/2]

Point::Point ( )
inline

constructeur par defaut.

Definition at line 23 of file vec.h.

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

◆ Point() [2/2]

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

Definition at line 24 of file vec.h.

24: x(_x), y(_y), z(_z) {}

Member Data Documentation

◆ x

float Point::x

Definition at line 36 of file vec.h.

◆ y

float Point::y

Definition at line 36 of file vec.h.

◆ z

float Point::z

Definition at line 36 of file vec.h.


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