19 Line(
float x1,
float y1,
float x2,
float y2);
21 virtual std::shared_ptr<geometrize::Shape>
clone()
const override;
The Line class represents a simple line.
Definition: line.h:16
virtual std::shared_ptr< geometrize::Shape > clone() const override
clone Clones the shape, a virtual copy constructor.
Definition: line.cpp:19
virtual geometrize::ShapeTypes getType() const override
getType Gets the ShapeType of the shape.
Definition: line.cpp:32
float m_y1
First y-coordinate.
Definition: line.h:25
float m_y2
Second y-coordinate.
Definition: line.h:27
float m_x2
Second x-coordinate.
Definition: line.h:26
float m_x1
First x-coordinate.
Definition: line.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