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

cRectangle Class Reference

rectangle, défini par deux points opposés More...

#include <geo_utils.h>

Inheritance diagram for cRectangle:

cPositive_Rectangle List of all members.

Public Member Functions

 cRectangle ()
 construit un rectangle par default : [0,0] à [0,0]

 cRectangle (int x0, int y0, int x1, int y1)
 construit un rectangle entre [x0,y0] et [x1,y1]

 cRectangle (cPoint2D pA, cPoint2D pB)
 construit un rectangle entre 'pA' et 'pB'

void Get_Centre (cPoint2D &p)
 met ds 'p' le point au centre du rectangle


Public Attributes

cPoint2D p0
 premier point dans un angle du rectangle

cPoint2D p1
 point dans l'angle opposé à p0


Friends

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

Detailed Description

rectangle, défini par deux points opposés

Definition at line 92 of file geo_utils.h.


Constructor & Destructor Documentation

cRectangle::cRectangle  )  [inline]
 

construit un rectangle par default : [0,0] à [0,0]

Definition at line 97 of file geo_utils.h.

References p0, p1, cPoint2D::X, and cPoint2D::Y.

cRectangle::cRectangle int  x0,
int  y0,
int  x1,
int  y1
[inline]
 

construit un rectangle entre [x0,y0] et [x1,y1]

Definition at line 105 of file geo_utils.h.

References p0, p1, cPoint2D::X, and cPoint2D::Y.

cRectangle::cRectangle cPoint2D  pA,
cPoint2D  pB
[inline]
 

construit un rectangle entre 'pA' et 'pB'

Definition at line 113 of file geo_utils.h.

References p0, and p1.


Member Function Documentation

void cRectangle::Get_Centre cPoint2D p  ) 
 

met ds 'p' le point au centre du rectangle

Definition at line 28 of file geo_utils.cpp.

References Get_Centre(), p0, p1, cPoint2D::Set(), cPoint2D::X, and cPoint2D::Y.

Referenced by cSquare_Area_Debug_Displayer::Display(), Get_Centre(), and cSquare_Area::Get_Centre().


Friends And Related Function Documentation

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

Definition at line 94 of file geo_utils.h.


Member Data Documentation

cPoint2D cRectangle::p0
 

premier point dans un angle du rectangle

Definition at line 121 of file geo_utils.h.

Referenced by cRectangle(), Get_Centre(), cUnit::Move(), and cSquare_Area::split().

cPoint2D cRectangle::p1
 

point dans l'angle opposé à p0

Definition at line 122 of file geo_utils.h.

Referenced by cRectangle(), Get_Centre(), cUnit::Move(), and cSquare_Area::split().


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