Initial commit.
This commit is contained in:
commit
59c6161fdb
134 changed files with 4751 additions and 0 deletions
25
src/geometry/DiscretePoint.h
Normal file
25
src/geometry/DiscretePoint.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
class DiscretePoint
|
||||
{
|
||||
unsigned mX;
|
||||
unsigned mY;
|
||||
|
||||
public:
|
||||
|
||||
DiscretePoint(unsigned x, unsigned y);
|
||||
|
||||
~DiscretePoint();
|
||||
|
||||
std::shared_ptr<DiscretePoint> Create(unsigned x, unsigned y);
|
||||
|
||||
unsigned GetX() const;
|
||||
|
||||
unsigned GetY() const;
|
||||
};
|
||||
|
||||
using Pixel = DiscretePoint;
|
||||
using DiscretePointPtr = std::shared_ptr<DiscretePoint>;
|
||||
using PixelPtr = DiscretePointPtr;
|
Loading…
Add table
Add a link
Reference in a new issue