OMNeT++ Simulation Library
5.6.1
|
#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 |
double | y |
double | width |
double | height |