19 Circle(
float x,
float y,
float r);
21 virtual std::shared_ptr<geometrize::Shape>
clone()
const override;
The Circle class represents a circle.
Definition: circle.h:16
float m_r
Radius.
Definition: circle.h:26
virtual geometrize::ShapeTypes getType() const override
getType Gets the ShapeType of the shape.
Definition: circle.cpp:30
float m_y
y-coordinate.
Definition: circle.h:25
virtual std::shared_ptr< geometrize::Shape > clone() const override
clone Clones the shape, a virtual copy constructor.
Definition: circle.cpp:18
float m_x
x-coordinate.
Definition: circle.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