27 {
V2D(lowerX, lowerY),
V2D(lowerX, upperY),
V2D(upperX, upperY),
V2D(upperX, lowerY)}} {}
38 return (*
this)[
index];
std::map< DeltaEMode::Type, std::string > index
An implementation of a convex polygon.
ConvexPolygon()
Default constructor.
virtual bool contains(const Kernel::V2D &point) const
Is a point inside this polygon.
std::vector< Kernel::V2D > Vertices
Type of the point list.
ConvexPolygon toPoly() const override
Return a new Polygon based on the current Quadrilateral.
virtual void shiftVertexesClockwise()
Shifts the vertexes in a clockwise manner.
const Kernel::V2D & lowerRight() const
const Kernel::V2D & upperLeft() const
std::array< Kernel::V2D, 4 > m_vertices
const Kernel::V2D & upperRight() const
size_t npoints() const override
Return the number of vertices.
Quadrilateral(const Kernel::V2D &lowerLeft, const Kernel::V2D &lowerRight, const Kernel::V2D &upperRight, const Kernel::V2D &upperLeft)
Constructor with the four vertices.
const Kernel::V2D & lowerLeft() const
const Kernel::V2D & at(const size_t index) const override
Bounds-checked index access.
bool contains(const Kernel::V2D &point) const override
Is a point inside this polygon.
Exception for index errors.
Implements a 2-dimensional vector embedded in a 3D space, i.e.