Structure defining an axis-aligned rectangle in two dimensions with doubles representing the coordinates.
More...
#include <types.h>
|
| RectangleD (double x, double y, double w, double h) |
|
| RectangleT () |
| Default constructor which sets all properties to zero.
|
|
| RectangleT (double x, double y, double w, double h) |
|
bool | IsPointInside (const PointT< double > &p) const |
|
|
double | x |
| The x-coordinate of the edge point of the rectangle.
|
|
double | y |
| The y-coordinate of the edge point of the rectangle.
|
|
double | w |
| The width of the rectangle.
|
|
double | h |
| The height of the rectangle.
|
|
Structure defining an axis-aligned rectangle in two dimensions with doubles representing the coordinates.
◆ RectangleD()
imgdoc2::RectangleD::RectangleD |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
w, |
|
|
double |
h |
|
) |
| |
|
inline |
- Exceptions
-
std::invalid_argument | Thrown when an invalid argument error condition occurs. |
- Parameters
-
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. |
The documentation for this struct was generated from the following file: