
The class can be used whenever ccordinates describing a rectangle have to be stored together, such as for screen coordinates or when describing a geometrical shape.
Definition at line 146 of file delphin_output_lib_types.h.
Public Member Functions | |
| rectangle () | |
| Default contructor (initialises the rectangle with default value of type T). | |
| rectangle (T l, T t, T r, T b) | |
| Constructor (initialises the rectangle with given parameters for the coordinates). | |
| void | set (T l, T t, T r, T b) |
| Sets all four coordinates with one function call (essentially behaves like 'rect = rectangle(l,r,t,b)'). | |
| T | width () const |
| Returns the width (that is difference between the coordinates 'right' and 'left'). | |
| T | height () const |
| Returns the height (that is difference between the coordinates 'bottom' and 'top'). | |
Public Attributes | |
| T | left |
| The left coordinate. | |
| T | top |
| The top coordinate. | |
| T | right |
| The right coordinate. | |
| T | bottom |
| The bottom coordinate. | |
| DELPHIN::rectangle< T >::rectangle | ( | ) |
Default contructor (initialises the rectangle with default value of type T).
Definition at line 149 of file delphin_output_lib_types.h.
| DELPHIN::rectangle< T >::rectangle | ( | T | l, | |
| T | t, | |||
| T | r, | |||
| T | b | |||
| ) |
Constructor (initialises the rectangle with given parameters for the coordinates).
Definition at line 151 of file delphin_output_lib_types.h.
| void DELPHIN::rectangle< T >::set | ( | T | l, | |
| T | t, | |||
| T | r, | |||
| T | b | |||
| ) |
Sets all four coordinates with one function call (essentially behaves like 'rect = rectangle(l,r,t,b)').
Definition at line 153 of file delphin_output_lib_types.h.
| T DELPHIN::rectangle< T >::width | ( | ) | const |
Returns the width (that is difference between the coordinates 'right' and 'left').
Definition at line 156 of file delphin_output_lib_types.h.
| T DELPHIN::rectangle< T >::height | ( | ) | const |
Returns the height (that is difference between the coordinates 'bottom' and 'top').
Definition at line 158 of file delphin_output_lib_types.h.
| T DELPHIN::rectangle< T >::left |
| T DELPHIN::rectangle< T >::top |
| T DELPHIN::rectangle< T >::right |
| T DELPHIN::rectangle< T >::bottom |
1.5.5