Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

cPoint2D Class Reference

point 2D simple More...

#include <geo_utils.h>

List of all members.

Public Member Functions

 cPoint2D ()
 constructeur par defaut : [0,0]

 cPoint2D (int x, int y)
 Get_X ()
 retourne l'abcisse du point

 Get_Y ()
 retourne l'ordonnée du point

 Set (int x, int y)
 set les coord du point à [x,y]

bool operator== (cPoint2D &p)
 operateur d'egalité

bool operator!= (cPoint2D &p)
 operateur de difference


Public Attributes

int X
 abcisse du point

int Y
 ordonnée du point


Friends

std::ostream & operator<< (std::ostream &os, const cPoint2D &ex)


Detailed Description

point 2D simple

Definition at line 43 of file geo_utils.h.


Constructor & Destructor Documentation

cPoint2D::cPoint2D  )  [inline]
 

constructeur par defaut : [0,0]

Definition at line 48 of file geo_utils.h.

References X, and Y.

cPoint2D::cPoint2D int  x,
int  y
[inline]
 

Definition at line 54 of file geo_utils.h.

References X, and Y.


Member Function Documentation

cPoint2D::Get_X  )  [inline]
 

retourne l'abcisse du point

Definition at line 61 of file geo_utils.h.

References X.

Referenced by Build_Two_Segments(), cHV_Seg::cHV_Seg(), cHV_Seg::Contient_Point(), cGame_World::Do_Segment_Intersect_Walls(), cGame_World::Find_Path(), cHV_Wall::Get_Intersection(), cHV_Seg::Get_Intersection(), cWall::Get_Length(), cSeg::Get_Middle(), cHV_Wall::Get_Position_Point(), cSeg::Get_Square_Distance_From_Point(), cSeg::Get_Square_Length(), cPositive_Rectangle::In(), cSquare_Area::Manage_Paralell_Portals(), cUnit::Move(), cHV_Seg::Set(), cHV_Wall::Set_HV(), cHV_Wall::Set_Order(), cSquare_Area::split(), and Test_Intersections_1().

cPoint2D::Get_Y  )  [inline]
 

retourne l'ordonnée du point

Definition at line 63 of file geo_utils.h.

References Y.

Referenced by Build_Two_Segments(), cHV_Seg::cHV_Seg(), cHV_Seg::Contient_Point(), cGame_World::Do_Segment_Intersect_Walls(), cGame_World::Find_Path(), cHV_Wall::Get_Intersection(), cHV_Seg::Get_Intersection(), cWall::Get_Length(), cSeg::Get_Middle(), cHV_Wall::Get_Position_Point(), cSeg::Get_Square_Distance_From_Point(), cSeg::Get_Square_Length(), cPositive_Rectangle::In(), cSquare_Area::Manage_Paralell_Portals(), cUnit::Move(), cHV_Seg::Set(), cHV_Wall::Set_HV(), cHV_Wall::Set_Order(), cSquare_Area::split(), and Test_Intersections_1().

bool cPoint2D::operator!= cPoint2D p  )  [inline]
 

operateur de difference

Definition at line 78 of file geo_utils.h.

References operator!=(), X, and Y.

Referenced by operator!=().

bool cPoint2D::operator== cPoint2D p  )  [inline]
 

operateur d'egalité

Definition at line 72 of file geo_utils.h.

References operator==(), X, and Y.

Referenced by operator==().

cPoint2D::Set int  x,
int  y
[inline]
 

set les coord du point à [x,y]

Definition at line 65 of file geo_utils.h.

References Set(), X, and Y.

Referenced by cHV_Seg::cHV_Seg(), cSeg::cSeg(), cRectangle::Get_Centre(), cGreen_Ball::Get_Destination(), cBlue_Ball::Get_Destination(), cRed_Ball::Get_Destination(), cEnnemy::Get_Destination(), cPositive_Rectangle::Get_Est_Seg(), cHV_Wall::Get_Intersection(), cSeg::Get_Middle(), cPositive_Rectangle::Get_Nord_Seg(), cPositive_Rectangle::Get_Ouest_Seg(), cPositive_Rectangle::Get_Sud_Seg(), cSquare_Area::Manage_Paralell_Portals(), Set(), cHV_Seg::Set(), cHV_Wall::Set_Order(), cSquare_Area::split(), and Test_Intersections_1().


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  os,
const cPoint2D ex
[friend]
 

Definition at line 45 of file geo_utils.h.


Member Data Documentation

int cPoint2D::X
 

abcisse du point

Definition at line 83 of file geo_utils.h.

Referenced by cEnnemy::cEnnemy(), cPoint2D(), cPositive_Rectangle::cPositive_Rectangle(), cRectangle::cRectangle(), cGame_World::Do_Segment_Intersect_Walls(), Draw_Line(), cGame_World::Find_Path(), cUnit::Follow_Path(), cRectangle::Get_Centre(), Get_Distance(), cPositive_Rectangle::Get_Est_Seg(), cHV_Seg::Get_Intersection(), cPositive_Rectangle::Get_Nord_Seg(), Get_Square_Distance(), cPositive_Rectangle::Get_Sud_Seg(), Get_X(), cPositive_Rectangle::In(), cSquare_Area::Manage_Paralell_Portals(), cHV_Seg::On_Same_Line(), operator!=(), operator<<(), operator==(), cEnnemy::Reset(), Set(), cIncremental_Bresenham::Step(), Test_Path_Finder_1(), Test_Path_Finder_3(), Test_Path_Finder_4(), and Test_Path_Finder_5().

int cPoint2D::Y
 

ordonnée du point

Definition at line 84 of file geo_utils.h.

Referenced by cEnnemy::cEnnemy(), cPoint2D(), cPositive_Rectangle::cPositive_Rectangle(), cRectangle::cRectangle(), cGame_World::Do_Segment_Intersect_Walls(), Draw_Line(), cGame_World::Find_Path(), cUnit::Follow_Path(), cRectangle::Get_Centre(), Get_Distance(), cPositive_Rectangle::Get_Est_Seg(), cHV_Seg::Get_Intersection(), cPositive_Rectangle::Get_Ouest_Seg(), Get_Square_Distance(), cPositive_Rectangle::Get_Sud_Seg(), Get_Y(), cPositive_Rectangle::In(), cSquare_Area::Manage_Paralell_Portals(), cHV_Seg::On_Same_Line(), operator!=(), operator<<(), operator==(), cEnnemy::Reset(), Set(), cSquare_Area::split(), cIncremental_Bresenham::Step(), Test_Path_Finder_1(), Test_Path_Finder_3(), Test_Path_Finder_4(), and Test_Path_Finder_5().


The documentation for this class was generated from the following file:
Generated on Fri May 21 19:22:37 2004 for LIBELL by doxygen 1.3.7