#include <geo_utils.h>
Inheritance diagram for cRectangle:
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) |
Definition at line 92 of file geo_utils.h.
|
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. |
|
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. |
|
construit un rectangle entre 'pA' et 'pB'
Definition at line 113 of file geo_utils.h. |
|
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(). |
|
Definition at line 94 of file geo_utils.h. |
|
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(). |
|
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(). |