19 Triangle(
float x1,
float y1,
float x2,
float y2,
float x3,
float y3);
21 virtual std::shared_ptr<geometrize::Shape>
clone()
const override;
The Triangle class represents a triangle.
Definition: triangle.h:16
float m_x3
Third x-coordinate.
Definition: triangle.h:28
float m_y3
Third y-coordinate.
Definition: triangle.h:29
virtual geometrize::ShapeTypes getType() const override
getType Gets the ShapeType of the shape.
Definition: triangle.cpp:36
float m_y1
First y-coordinate.
Definition: triangle.h:25
float m_x2
Second x-coordinate.
Definition: triangle.h:26
virtual std::shared_ptr< geometrize::Shape > clone() const override
clone Clones the shape, a virtual copy constructor.
Definition: triangle.cpp:21
float m_x1
First x-coordinate.
Definition: triangle.h:24
float m_y2
Second y-coordinate.
Definition: triangle.h:27
ShapeTypes
The ShapeTypes enum specifies the types of shapes that can be used. These can be combined to produce ...
Definition: shapetypes.h:17