#include <trigo.h>
Public Member Functions | |
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]. | |
BOOL | IsOnQuadrilatere (Point2D< T > &a, Point2D< T > &b, Point2D< T > &c, Point2D< T > &d, double *alphaX=NULL, double *alphaY=NULL) |
Le point fait il partie du quadrilatere ? | |
BOOL | IsOnRectangle (Point2D< T > &a, Point2D< T > &c, double *alphaX=NULL, double *alphaY=NULL) |
Le point fait il partie du rectangle delimité par les points a et d? | |
BOOL | GetRelativePtOnQuadrilatere (Point2D< T > &a, Point2D< T > &b, Point2D< T > &c, Point2D< T > &d, double *deltaX, double *deltaY) |
Calcul les "coordonnée local relative" d'un point p dans un quadrilatere [abcd]. | |
BOOL | GetRelativePtOn2Lines (Point2D< T > &a, Point2D< T > &b, Point2D< T > &c, Point2D< T > &d, double *alpha) |
void | ToNormalVector (BOOL asTrigo=TRUE) |
Public Attributes | |
T | x |
T | y |
Definition at line 73 of file trigo.h.
|
|
|
|
|
Definition at line 473 of file trigo.h. References alpha, BOOL(), c, Point2D< T >::x, and Point2D< T >::y. Referenced by Point2D< T >::GetRelativePtOnQuadrilatere(). |
|
Calcul les "coordonnée local relative" d'un point p dans un quadrilatere [abcd]. Ex.: Example "rectangulaire" resultat pp={2.5,2.5} Ex.: Example "quelquonque" resultat pp={2.5,2.5} Definition at line 460 of file trigo.h. References BOOL(), c, and Point2D< T >::GetRelativePtOn2Lines(). Referenced by Primitive::GetLocalPos(), and Point2D< T >::IsOnQuadrilatere(). |
|
Definition at line 326 of file trigo.h. Referenced by Point2D< T >::IsOnSegment(). |
|
Le point fait il partie du quadrilatere ?
Definition at line 425 of file trigo.h. References BOOL(), c, Point2D< T >::GetRelativePtOnQuadrilatere(), and res. Referenced by Point2D< T >::IsOnRectangle(). |
|
Le point fait il partie du rectangle delimité par les points a et d?
Definition at line 416 of file trigo.h. References b, BOOL(), c, and Point2D< T >::IsOnQuadrilatere(). |
|
Definition at line 317 of file trigo.h. References alpha, BOOL(), and Point2D< T >::IsOnLine(). Referenced by Point2D< T >::IsOnTriangle(). |
|
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.
Definition at line 393 of file trigo.h. References BOOL(), c, LinearEqu2D< T >::GetCrossPtFromLine(), and Point2D< T >::IsOnSegment(). Referenced by Point3D< T >::IsOnTriangle(). |
|
Definition at line 283 of file trigo.h. References Point2D< T >::x, and Point2D< T >::y. |
|
|
|
|
|
Definition at line 274 of file trigo.h. References src, Point2D< T >::x, and Point2D< T >::y. |
|
|
|
Definition at line 265 of file trigo.h. References src, Point2D< T >::x, and Point2D< T >::y. |
|
Definition at line 292 of file trigo.h. References Point2D< T >::x, and Point2D< T >::y. |
|
|
|
|
|
Definition at line 301 of file trigo.h. References src. |
|
|
|
|
|
Definition at line 82 of file trigo.h. Referenced by Cursor::GetHotSpot(), Primitive::GetLocalPos(), and Point2D< LayoutDouble >::Point2D(). |
|
|
|
Definition at line 83 of file trigo.h. Referenced by Point2D< LayoutDouble >::Point2D(). |
|
|