|
LBIBCell
|
a class representing a rectangle More...
#include <Rectangle.hpp>
Public Member Functions | |
| Rectangle (double ymax, double ymin, double xmin, double xmax) | |
| Rectangle Constructs a rectangle. More... | |
| Rectangle (double x, double y, double size) | |
| Rectangle Constructs a rectangle around a point with lenght and hight size. More... | |
| bool | within (const Rectangle &rect) const |
| within Is rect contained inside this rect More... | |
| bool | within (double n, double s, double w, double e) const |
| within Is rect contained inside this rect More... | |
| bool | pointWithinBounds (double x, double y) const |
| pointWithinBounds Checks if point is contained inside this rectangle More... | |
Public Attributes | |
| const double | north |
| the north border | |
| const double | south |
| the north border | |
| const double | west |
| the north border | |
| const double | east |
| the north border | |
a class representing a rectangle
Definition at line 30 of file Rectangle.hpp.
|
explicit |
Rectangle Constructs a rectangle.
| ymax | The top border. |
| ymin | The bottom border. |
| xmin | The left border. |
| xmax | The right border. |
Definition at line 25 of file Rectangle.cpp.
|
explicit |
Rectangle Constructs a rectangle around a point with lenght and hight size.
| x | The x position |
| y | The y position |
| size | the lenght and height of the rectagle |
Definition at line 35 of file Rectangle.cpp.
| bool UtilLib::geometry::Rectangle::pointWithinBounds | ( | double | x, |
| double | y | ||
| ) | const |
pointWithinBounds Checks if point is contained inside this rectangle
| x | The x pos of the point |
| y | The y pos if the point |
Definition at line 63 of file Rectangle.cpp.
| bool UtilLib::geometry::Rectangle::within | ( | const Rectangle & | rect | ) | const |
within Is rect contained inside this rect
| rect | Another rectangele |
Definition at line 43 of file Rectangle.cpp.
| bool UtilLib::geometry::Rectangle::within | ( | double | n, |
| double | s, | ||
| double | w, | ||
| double | e | ||
| ) | const |
within Is rect contained inside this rect
| n | The north border of another rectangle |
| s | The south border of another rectangle |
| w | The west border of another rectangle |
| e | The east border of another rectangle |
Definition at line 47 of file Rectangle.cpp.