Structure defining an axis-aligned rectangle in two dimensions with floats representing the coordinates.
More...
#include <types.h>
|
| | RectangleF (float x, float y, float w, float h) |
| |
|
| RectangleT () |
| | Default constructor which sets all properties to zero.
|
| |
| | RectangleT (float x, float y, float w, float h) |
| |
| bool | IsPointInside (const PointT< float > &p) const |
| |
|
|
float | x |
| | The x-coordinate of the edge point of the rectangle.
|
| |
|
float | y |
| | The y-coordinate of the edge point of the rectangle.
|
| |
|
float | w |
| | The width of the rectangle.
|
| |
|
float | h |
| | The height of the rectangle.
|
| |
Structure defining an axis-aligned rectangle in two dimensions with floats representing the coordinates.
◆ RectangleF()
| imgdoc2::RectangleF::RectangleF |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
w, |
|
|
float |
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: