|
PoDoFo 1.1.0
|
An unoriented rectangle defined by 2 points. More...
#include <Corners.h>
Public Member Functions | |
| Corners () | |
| Create an empty rectangle. | |
| Corners (double x1, double y1, double x2, double y2) | |
| Create a rectangle from 2 points. | |
| Corners (const Corners &rhs)=default | |
| Vector2 | GetCorner1 () const |
| Vector2 | GetCorner2 () const |
| double | GetWidth () const |
| double | GetHeight () const |
| Rect | GetNormalized () const |
| Get the normalized rectangle defined by position (left-bottom) and size. | |
| void | ToArray (PdfArray &arr) const |
| Converts the rectangle into an array. | |
| PdfArray | ToArray () const |
| bool | operator== (const Corners &rect) const |
| bool | operator!= (const Corners &rect) const |
| Corners & | operator= (const Corners &rhs)=default |
| operator Rect () const | |
Static Public Member Functions | |
| static Corners | FromCorners (const Vector2 &corner1, const Vector2 &corner2) |
| static Corners | FromArray (const PdfArray &arr) |
| Create a Corners instance from a the 4 values in the array. | |
Public Attributes | |
| double | X1 |
| double | Y1 |
| double | X2 |
| double | Y2 |
An unoriented rectangle defined by 2 points.
Create a Corners instance from a the 4 values in the array.
| arr | the array to load the values from |