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

The x coordinate of a Point is used as the width of a Dimension, and the y coordinate as the height. Additionally, public member variables "width" and "height" are provided as references to x and y.
Public Methods | |
| Dimension (T width=0, T height=0) | |
| Create a new Dimension with the given width and height. | |
| Dimension (const Dimension< T > &other) | |
| Copy a dimension. | |
| Dimension (const Point< T > &other) | |
| Copy a point to a dimension. | |
| Dimension & | operator= (const Point< T > &other) |
| Set width and height according to the given Point object. | |
| Dimension & | operator= (const Dimension &other) |
| Set width and height according to the given Dimension object. | |
Public Attributes | |
| T & | width |
| The width of the dimension. | |
| T & | height |
| The height of the dimension. | |