44 static Rect FromCorners(
double x1,
double y1,
double x2,
double y2);
64 std::string ToString()
const;
66 bool Contains(
double x,
double y)
const;
81 Vector2 GetLeftBottom()
const;
85 Vector2 GetRightTop()
const;
97 double GetRight()
const;
101 double GetTop()
const;
104 bool operator==(
const Rect&
rect)
const;
105 bool operator!=(
const Rect&
rect)
const;
106 Rect operator*(
const Matrix& m)
const;
An unoriented rectangle defined by 2 points.
Definition Corners.h:20
This class represents a PdfArray Use it for all arrays that are written to a PDF file.
Definition PdfArray.h:81
An normalized rectangle defined by position (left-bottom) and size.
Definition Rect.h:20
double GetLeft() const
Get the left coordinate of the rectangle.
Definition Rect.h:89
Rect(const Rect &rhs)=default
Copy constructor.
double GetBottom() const
Get the bottom coordinate of the rectangle.
Definition Rect.h:93
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:38
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition basetypes.h:16