|
GLam Collection version 0.4 - | ACCUEIL - CLASSES - HIERARCHIE - MEMBRES - EXEMPLES |
Point 2D/3D. Plus de détails...
#include <XamMath3D.h>
Fonctions membres publiques | |
| XamPoint () | |
| XamPoint (double x, double y, double z=0.0) | |
| XamPoint (double *point) | |
| string | text (const string name="", const string valueFormat="") const |
| double & | operator() (unsigned i) |
| double | operator() (unsigned i) const |
| double | x () const |
| double | y () const |
| double | z () const |
| void | set (double x, double y, double z=0.0) |
| void | set (double *point) |
| void | setX (double value) |
| void | setY (double value) |
| void | setZ (double value) |
| XamPoint | operator+ (double value) const |
| XamPoint | operator+ (const XamPoint &point) const |
| XamPoint | operator- (double value) const |
| XamPoint | operator- (const XamPoint &point) const |
| XamPoint | operator* (double value) const |
| XamPoint | operator* (const XamPoint &point) const |
| XamPoint | operator/ (double value) const |
| XamPoint | operator/ (const XamPoint &point) const |
| XamPoint & | operator+= (double value) |
| XamPoint & | operator+= (const XamPoint &point) |
| XamPoint & | operator-= (double value) |
| XamPoint & | operator-= (const XamPoint &point) |
| XamPoint & | operator*= (double value) |
| XamPoint & | operator*= (const XamPoint &point) |
| XamPoint & | operator/= (double value) |
| XamPoint & | operator/= (const XamPoint &point) |
| XamPoint | operator* (const XamMatrix &m) const |
| XamPoint & | operator*= (const XamMatrix &m) |
Point 2D/3D.
La classe XamPoint modélise un point en coordonnées homogènes (x,y,z,w), avec w toujours égal à 1. Le constructeur par défaut crée le point (0,0,0,1).
Elle autorise les opérations de base +,-,*,/ et le produit point-matrice.
La méthode text() retourne une chaine contenant le nom spécifié par l'argument name suivi des valeurs du point au format indiqué ("%+6.2f" par défaut).
| XamPoint::XamPoint | ( | ) | [inline] |
Constructeur par défaut (0,0,0,1).
| XamPoint::XamPoint | ( | double | x, | |
| double | y, | |||
| double | z = 0.0 | |||
| ) | [inline] |
Constructeur.
| XamPoint::XamPoint | ( | double * | point | ) | [inline] |
Constructeur. point doit être un tableau de 3 valeurs réelles.