karto::Rectangle2< T > Class Template Reference
#include <Karto.h>
List of all members.
Detailed Description
template<typename T>
class karto::Rectangle2< T >
Stores x, y, width and height that represents the location and size of a rectangle (x, y) is at bottom left in mapper!
Definition at line 1636 of file Karto.h.
Constructor & Destructor Documentation
Default constructor
Definition at line 1642 of file Karto.h.
Constructor initializing rectangle parameters
- Parameters:
-
| x | x-coordinate of left edge of rectangle |
| y | y-coordinate of bottom edge of rectangle |
| width | width of rectangle |
| height | height of rectangle |
Definition at line 1653 of file Karto.h.
Constructor initializing rectangle parameters
- Parameters:
-
| rPosition | (x,y)-coordinate of rectangle |
| rSize | Size of the rectangle |
Definition at line 1664 of file Karto.h.
Copy constructor
Definition at line 1673 of file Karto.h.
Member Function Documentation
Gets the center of this rectangle
- Returns:
- the center of this rectangle
Definition at line 1802 of file Karto.h.
Gets the height of this rectangle
- Returns:
- the height of this rectangle
Definition at line 1738 of file Karto.h.
Gets the position of this rectangle
- Returns:
- the position of this rectangle
Definition at line 1756 of file Karto.h.
Gets the size of this rectangle
- Returns:
- the size of this rectangle
Definition at line 1784 of file Karto.h.
Gets the width of this rectangle
- Returns:
- the width of this rectangle
Definition at line 1720 of file Karto.h.
Gets the x-coordinate of the left edge of this rectangle
- Returns:
- the x-coordinate of the left edge of this rectangle
Definition at line 1684 of file Karto.h.
Gets the y-coordinate of the bottom edge of this rectangle
- Returns:
- the y-coordinate of the bottom edge of this rectangle
Definition at line 1702 of file Karto.h.
Inequality operator
Definition at line 1830 of file Karto.h.
Assignment operator
Definition at line 1811 of file Karto.h.
Equality operator
Definition at line 1822 of file Karto.h.
Sets the height of this rectangle
- Parameters:
-
| height | the height of this rectangle |
Definition at line 1747 of file Karto.h.
Sets the position of this rectangle
- Parameters:
-
Definition at line 1775 of file Karto.h.
Sets the position of this rectangle
- Parameters:
-
Definition at line 1766 of file Karto.h.
Sets the size of this rectangle
- Parameters:
-
Definition at line 1793 of file Karto.h.
Sets the width of this rectangle
- Parameters:
-
| width | the width of this rectangle |
Definition at line 1729 of file Karto.h.
Sets the x-coordinate of the left edge of this rectangle
- Parameters:
-
| x | the x-coordinate of the left edge of this rectangle |
Definition at line 1693 of file Karto.h.
Sets the y-coordinate of the bottom edge of this rectangle
- Parameters:
-
| y | the y-coordinate of the bottom edge of this rectangle |
Definition at line 1711 of file Karto.h.
Member Data Documentation
The documentation for this class was generated from the following file: