OMNeT++ Simulation Library
6.0.3
|
#include <ccanvas.h>
Represents a rectangle as an (x,y,width,height) tuple.
Public Member Functions | |
Methods. | |
Rectangle () | |
Rectangle (double x, double y, double width, double height) | |
Point | getCenter () const |
Point | getSize () const |
Rectangle & | translate (double dx, double dy) |
bool | operator== (const Rectangle &other) const |
std::string | str () const |
Public Attributes | |
Rectangle geometry as top-left corner and size. | |
double | x = 0 |
double | y = 0 |
double | width = 0 |
double | height = 0 |