Page principale | Hiérarchie des classes | Liste par ordre alphabétique | Liste des composants | Liste des fichiers | Composants | Déclarations | Pages associées

Référence de la classe Point2D< T >

un point de 2 dimmentions Plus de détails...

#include <trigo.h>


Membres publics

 Point2D ()
 Point2D (T _x, T _y)
void Set (T _x, T _y)
void Zero ()
BOOL operator== (Point2D< T > &src)
BOOL operator!= (Point2D< T > &src)
void operator= (Point3D< T > &src)
void operator= (Point2D< T > &src)
void operator+= (Point2D< T > &src)
Point2D< T > operator- (Point2D< T > &src)
Point2D< T > operator+ (Point2D< T > &src)
Point2D< T > operator * (double coef)
Point2D< T > operator/ (double coef)
void operator/= (double coef)
void operator *= (double coef)
double Power ()
BOOL IsOnSegment (Point2D< T > *a, Point2D< T > *b, double *alpha=NULL)
BOOL IsOnLine (Point2D< T > *a, Point2D< T > *b, double *alpha=NULL, double precision=PRECISION)
BOOL IsOnTriangle (Point2D< T > *a, Point2D< T > *b, Point2D< T > *c, double *alphaBC, double *alphaAPP, Point2D< T > *pp=NULL)
 Determine si un point (p) est contenu dans un triangle [abc].

void ToNormalVector (BOOL asTrigo=TRUE)

Attributs Publics

x
y


Description détaillée

template<class T>
class Point2D< T >

un point de 2 dimmentions


Documentation des contructeurs et destructeurs

template<class T>
Point2D< T >::Point2D  )  [inline]
 

template<class T>
Point2D< T >::Point2D _x,
_y
[inline]
 


Documentation des méthodes

template<class T>
BOOL Point2D< T >::IsOnLine Point2D< T > *  a,
Point2D< T > *  b,
double *  alpha = NULL,
double  precision = PRECISION
 

template<class T>
BOOL Point2D< T >::IsOnSegment Point2D< T > *  a,
Point2D< T > *  b,
double *  alpha = NULL
 

template<class T>
BOOL Point2D< T >::IsOnTriangle Point2D< T > *  a,
Point2D< T > *  b,
Point2D< T > *  c,
double *  alphaBC,
double *  alphaAPP,
Point2D< T > *  pp = NULL
 

Determine si un point (p) est contenu dans un triangle [abc].

Si les pointeur alhpa sont données, il donne la projection sur les segments qui compose le tirangle en pourcentage par rapport a leur premier sommet.

Point2D<float> a,b,c,p,pp; a.Set(0,0); b.Set(10,0); c.Set(0,10); p.Set(2,2); double alphaBC,alphaAPP; BOOL res = p.IsOnTriangle(&a,&b,&c,&alphaBC,&alphaAPP,&pp);

template<class T>
Point2D<T> Point2D< T >::operator * double  coef  )  [inline]
 

template<class T>
void Point2D< T >::operator *= double  coef  )  [inline]
 

template<class T>
BOOL Point2D< T >::operator!= Point2D< T > &  src  )  [inline]
 

template<class T>
Point2D<T> Point2D< T >::operator+ Point2D< T > &  src  )  [inline]
 

template<class T>
void Point2D< T >::operator+= Point2D< T > &  src  )  [inline]
 

template<class T>
Point2D<T> Point2D< T >::operator- Point2D< T > &  src  )  [inline]
 

template<class T>
Point2D<T> Point2D< T >::operator/ double  coef  )  [inline]
 

template<class T>
void Point2D< T >::operator/= double  coef  )  [inline]
 

template<class T>
void Point2D< T >::operator= Point2D< T > &  src  )  [inline]
 

template<class T>
void Point2D< T >::operator= Point3D< T > &  src  ) 
 

template<class T>
BOOL Point2D< T >::operator== Point2D< T > &  src  )  [inline]
 

template<class T>
double Point2D< T >::Power  )  [inline]
 

template<class T>
void Point2D< T >::Set _x,
_y
[inline]
 

template<class T>
void Point2D< T >::ToNormalVector BOOL  asTrigo = TRUE  ) 
 

template<class T>
void Point2D< T >::Zero  )  [inline]
 


Documentation des données imbriquées

template<class T>
T Point2D< T >::x
 

template<class T>
T Point2D< T >::y
 


La documentation associée à cette classe a été générée à partir du fichier suivant :
Généré le Thu Apr 8 18:52:20 2004 pour 3D Controls par doxygen 1.3.6