|
| float | radians (const float deg) |
| | conversion en radians.
|
| |
| float | degrees (const float rad) |
| | conversion en degres.
|
| |
| Transform | Identity () |
| | construit la transformation identite.
|
| |
| Transform | Transpose (const Transform &m) |
| | renvoie la transposee de la matrice.
|
| |
| Transform | Inverse (const Transform &m) |
| | renvoie l'inverse de la matrice.
|
| |
| Transform | Normal (const Transform &m) |
| | renvoie la transformation a appliquer aux normales d'un objet transforme par la matrice m.
|
| |
| Transform | Scale (const float x, const float y, const float z) |
| | renvoie la matrice representant une mise a l'echelle / etirement.
|
| |
| Transform | Scale (const float s) |
| |
| Transform | Translation (const Vector &v) |
| | renvoie la matrice representant une translation par un vecteur.
|
| |
| Transform | Translation (const float x, const float y, const float z) |
| | renvoie la matrice representant une translation par un vecteur x y z.
|
| |
| Transform | RotationX (const float angle) |
| | renvoie la matrice representation une rotation de angle degree autour de l'axe X.
|
| |
| Transform | RotationY (const float angle) |
| | renvoie la matrice representation une rotation de a degree autour de l'axe Y.
|
| |
| Transform | RotationZ (const float angle) |
| | renvoie la matrice representation une rotation de angle degree autour de l'axe Z.
|
| |
| Transform | Rotation (const Vector &axis, const float angle) |
| | renvoie la matrice representation une rotation de angle degree autour de l'axe axis.
|
| |
| Transform | Rotation (const Vector &u, const Vector &v) |
| | renvoie la matrice de rotation entre u et v.
|
| |
| Transform | Viewport (const float width, const float height) |
| | renvoie la matrice representant une transformation viewport.
|
| |
| Transform | Perspective (const float fov, const float aspect, const float znear, const float zfar) |
| | renvoie la matrice representant une transformation projection perspective.
|
| |
| Transform | Ortho (const float left, const float right, const float bottom, const float top, const float znear, const float zfar) |
| | renvoie la matrice representant une transformation orthographique, passage d'un cube []x[]x[] vers [-1 1]x[-1 1]x[-1 1].
|
| |
| Transform | Lookat (const Point &from, const Point &to, const Vector &up) |
| | renvoie la matrice representant le placement et l'orientation d'une camera pour observer le point to.
|
| |
| Transform | compose_transform (const Transform &a, const Transform &b) |
| | renvoie la composition des transformations a et b, t= a * b.
|
| |
| Transform | operator* (const Transform &a, const Transform &b) |
| | renvoie la composition des transformations a et b, t = a * b.
|
| |
| std::ostream & | operator<< (std::ostream &o, const Transform &t) |
| |
| Point | Origin () |
| | renvoie le point origine (0, 0, 0)
|
| |
| float | distance (const Point &a, const Point &b) |
| | renvoie la distance etre 2 points.
|
| |
| float | distance2 (const Point &a, const Point &b) |
| | renvoie le carre de la distance etre 2 points.
|
| |
| Point | center (const Point &a, const Point &b) |
| | renvoie le milieu du segment ab.
|
| |
| Point | min (const Point &a, const Point &b) |
| | renvoie la plus petite composante de chaque point. x, y, z= min(a.x, b.x), min(a.y, b.y), min(a.z, b.z).
|
| |
| Point | max (const Point &a, const Point &b) |
| | renvoie la plus grande composante de chaque point. x, y, z= max(a.x, b.x), max(a.y, b.y), max(a.z, b.z).
|
| |
| Vector | normalize (const Vector &v) |
| | renvoie un vecteur unitaire / longueur == 1.
|
| |
| Vector | cross (const Vector &u, const Vector &v) |
| | renvoie le produit vectoriel de 2 vecteurs.
|
| |
| float | dot (const Vector &u, const Vector &v) |
| | renvoie le produit scalaire de 2 vecteurs.
|
| |
| float | length (const Vector &v) |
| | renvoie la longueur d'un vecteur.
|
| |
| float | length2 (const Vector &v) |
| | renvoie la carre de la longueur d'un vecteur.
|
| |
| Vector | operator- (const Point &a, const Point &b) |
| | renvoie le vecteur a - b.
|
| |
| Point | operator+ (const Point &a, const Point &b) |
| | renvoie le "point" a + b.
|
| |
| Point | operator* (const float k, const Point &a) |
| | renvoie le "point" k*a;
|
| |
| Point | operator* (const Point &a, const float k) |
| | renvoie le "point" a*k;
|
| |
| Point | operator/ (const Point &a, const float k) |
| | renvoie le "point" v/k;
|
| |
| Vector | operator- (const Vector &v) |
| | renvoie le vecteur -v.
|
| |
| Point | operator+ (const Point &a, const Vector &v) |
| | renvoie le point a+v.
|
| |
| Point | operator+ (const Vector &v, const Point &a) |
| | renvoie le point a+v.
|
| |
| Point | operator- (const Vector &v, const Point &a) |
| | renvoie le point a-v.
|
| |
| Point | operator- (const Point &a, const Vector &v) |
| | renvoie le point a-v.
|
| |
| Vector | operator+ (const Vector &u, const Vector &v) |
| | renvoie le vecteur u+v.
|
| |
| Vector | operator- (const Vector &u, const Vector &v) |
| | renvoie le vecteur u-v.
|
| |
| Vector | operator+ (const float k, const Vector &v) |
| | renvoie le vecteur u+k;
|
| |
| Vector | operator+ (const Vector &v, const float k) |
| |
| Vector | operator* (const float k, const Vector &v) |
| | renvoie le vecteur k*u;
|
| |
| Vector | operator* (const Vector &v, const float k) |
| | renvoie le vecteur k*v;
|
| |
| Vector | operator* (const Vector &a, const Vector &b) |
| | renvoie le vecteur (a.x*b.x, a.y*b.y, a.z*b.z ).
|
| |
| Vector | operator/ (const Vector &v, const float k) |
| | renvoie le vecteur v/k;
|
| |
| std::ostream & | operator<< (std::ostream &o, const Point &p) |
| |
| std::ostream & | operator<< (std::ostream &o, const Vector &v) |
| |
| | Point::Point (const vec3 &v) |
| | cree un point a partir des coordonnees du vecteur generique (v.x, v.y, v.z).
|
| |
| | Point::Point (const vec4 &v) |
| |
| | Point::Point (const Vector &v) |
| | cree un point a partir des coordonnes du vecteur (v.x, v.y, v.z).
|
| |
| | Vector::Vector (const vec3 &v) |
| | cree un vecteur a partir des coordonnees du vecteur generique (v.x, v.y, v.z).
|
| |
| | Vector::Vector (const vec4 &v) |
| |
| | Vector::Vector (const Point &a) |
| | cree un vecteur a partir des coordonnes du point (a.x, a.y, a.z).
|
| |
| | vec3::vec3 (const Point &a) |
| | cree un vecteur generique a partir des coordonnees du point a.
|
| |
| | vec3::vec3 (const Vector &v) |
| | cree un vecteur generique a partir des coordonnees du vecteur v.
|
| |
| | vec4::vec4 (const Point &a) |
| | cree un vecteur generique a partir des coordonnees du point a, (a.x, a.y, a.z, 1).
|
| |
| | vec4::vec4 (const Vector &v) |
| | cree un vecteur generique a partir des coordonnees du vecteur v, (v.x, v.y, v.z, 0).
|
| |
| float | Point::operator() (const unsigned int i) const |
| | renvoie la ieme composante du point.
|
| |
| float | Vector::operator() (const unsigned int i) const |
| | renvoie la ieme composante du vecteur.
|
| |
| float & | Point::operator() (const unsigned int i) |
| |
| float & | Vector::operator() (const unsigned int i) |
| |