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

View file

@ -1,39 +0,0 @@
#pragma once
#include "AbstractGeometricItem.h"
#include "Point.h"
template<class T>
class Grid;
namespace ntk{
class Rectangle : public AbstractGeometricItem
{
public:
Rectangle(const Point& bottomLeft, const Point& topRight);
Rectangle(const Point& bottomLeft, double width, double height);
double getHeight() const;
double getWidth() const;
const Point& getLocation() const override;
Bounds getSize() const override;
Rectangle getBounds() const;
Type getType() const
{
return AbstractGeometricItem::Type::RECTANGLE;
}
void sample(Grid<unsigned char>* grid) const override;
private:
Point mBottomLeft;
double mWidth{0};
double mHeight{0};
};
}