Start cleaning geometry module.

This commit is contained in:
jmsgrogan 2023-01-13 11:47:48 +00:00
parent 26ecae46b3
commit cd688f608f
52 changed files with 493 additions and 277 deletions

23
src/geometry/path/Line.h Normal file
View file

@ -0,0 +1,23 @@
#pragma once
#include "PathElement.h"
#include <vector>
class Line : public PathElement
{
public:
Line(const Point& start, const std::vector<Point>& points);
const std::vector<Point>& getPoints() const;
Line::Type getType() const override;
const Point& getLocation() const override;
Bounds getBounds() const override;
private:
Point mStartPoint;
std::vector<Point> mPoints;
};