OMNeT++ API 6.2.0
Discrete Event Simulation Library
cFigure::Rectangle Struct Reference

Description

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
 

The documentation for this struct was generated from the following file: