#include <Shape.h>
Inheritance diagram for prapi::graphics::Rectangle< T >:

Public Methods | |
| Rectangle (T startX=0, T startY=0, T w=0, T h=0) | |
| Create a new Rectangle with the given upper left corner coordinates, width, and height. | |
| Rectangle (Dimension< T > dimension) | |
| Create a new Rectangle with the upper left corner coordinates set to zero and width and height set according to the given Dimension object. | |
| bool | contains (double xc, double yc) const |
| Return true if (and only if) the given coordinates lie within or on the boundaries of the shape. | |
Public Attributes | |
| T | x |
| The x coordinate of the upper left corner of the rectangle. | |
| T | y |
| The y coordinate of the upper left corner of the rectangle. | |
| T | width |
| The width of the rectangle. | |
| T | height |
| The height of the rectangle. | |