GLam Collection version 0.4 -  ACCUEIL -  CLASSES -  HIERARCHIE -  MEMBRES -  EXEMPLES


Référence de la classe XamPoint

Point 2D/3D. Plus de détails...

#include <XamMath3D.h>

Liste de tous les membres

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
XamPointoperator+= (double value)
XamPointoperator+= (const XamPoint &point)
XamPointoperator-= (double value)
XamPointoperator-= (const XamPoint &point)
XamPointoperator*= (double value)
XamPointoperator*= (const XamPoint &point)
XamPointoperator/= (double value)
XamPointoperator/= (const XamPoint &point)
XamPoint operator* (const XamMatrix &m) const
XamPointoperator*= (const XamMatrix &m)

Description détaillée

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).


Documentation des constructeurs et destructeur

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.


Doxygen version 1.6.3 - GLam Collection - (c) 2009-2010 Alain Menu