![]() |
libimgdoc2
|
#include <types.h>
Public Member Functions | |
| RectangleT () | |
| Default constructor which sets all properties to zero. | |
| RectangleT (t x, t y, t w, t h) | |
| bool | IsPointInside (const PointT< t > &p) const |
Public Attributes | |
| t | x |
| The x-coordinate of the edge point of the rectangle. | |
| t | y |
| The y-coordinate of the edge point of the rectangle. | |
| t | w |
| The width of the rectangle. | |
| t | h |
| The height of the rectangle. | |
Structure defining an axis-aligned rectangle in two dimensions.
| t | Generic type parameter. |
|
inline |
Constructor
| std::invalid_argument | Thrown when an invalid argument error condition occurs. |
| x | The x-coordinate of the edge point of the rectangle. |
| y | The y-coordinate of the edge point of the rectangle. |
| w | The width of the rectangle. |
| h | The height of the rectangle. |
|
inline |
Query if the specified point 'p' is inside the rectangle.
| p | The point to test. |