Start cleaning geometry module.
This commit is contained in:
parent
26ecae46b3
commit
cd688f608f
52 changed files with 493 additions and 277 deletions
23
src/geometry/path/Line.h
Normal file
23
src/geometry/path/Line.h
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue