19 Rectangle(
float x1,
float y1,
float x2,
float y2);
21 virtual std::shared_ptr<geometrize::Shape>
clone()
const override;
The Rectangle class represents a rectangle.
Definition: rectangle.h:16
float m_y1
Top coordinate.
Definition: rectangle.h:25
float m_x2
Right coordinate.
Definition: rectangle.h:26
virtual std::shared_ptr< geometrize::Shape > clone() const override
clone Clones the shape, a virtual copy constructor.
Definition: rectangle.cpp:19
float m_y2
Bottom coordinate.
Definition: rectangle.h:27
virtual geometrize::ShapeTypes getType() const override
getType Gets the ShapeType of the shape.
Definition: rectangle.cpp:32
float m_x1
Left coordinate.
Definition: rectangle.h:24
ShapeTypes
The ShapeTypes enum specifies the types of shapes that can be used. These can be combined to produce ...
Definition: shapetypes.h:17