20 #ifndef LIBREPCB_CORE_TRANSFORM_H 21 #define LIBREPCB_CORE_TRANSFORM_H 26 #include "../geometry/path.h" 27 #include "../types/angle.h" 28 #include "../types/point.h" 71 const Angle& rotation =
Angle(0),
bool mirrored =
false) noexcept
122 bool map(
bool mirror)
const noexcept;
196 template <
typename T>
197 T
map(
const T& container)
const noexcept {
199 for (
auto& item : copy) {
214 template <
typename T>
215 T
mapPx(
const T& obj)
const noexcept {
231 return !(*
this == rhs);
QPointF toPxQPointF() const noexcept
Get the point as a QPointF object in pixels (for QGraphics* objects)
Definition: point.h:277
Definition: occmodel.cpp:77
qreal toDeg() const noexcept
Get the Angle in degrees.
Definition: angle.h:181
The Layer class provides all supported geometry layers.
Definition: layer.h:40
type_safe::constrained_type< Path, NonEmptyPathConstraint, NonEmptyPathVerifier > NonEmptyPath
Definition: path.h:221
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5...
Definition: point.h:79
The Path class represents a list of vertices connected by straight lines or circular arc segments...
Definition: path.h:58