22 #ifndef CRNPOINT2DINT_HEADER
23 #define CRNPOINT2DINT_HEADER
Point2DInt(const Point2D< int > &p) noexcept
virtual ~Point2DInt() override=default
Destructor.
std::vector< Point2DInt > MakeSegment(const Point2DInt &p_begin, const Point2DInt &p_end)
Make a segment between two points.
#define CRN_SERIALIZATION_CONSTRUCTOR(classname)
Defines a default constructor from xml element.
Point2DInt(int x, int y) noexcept
Constructor from values.
Direction
An enumeration of directions.
Point2DInt & operator=(const Point2DInt &)=default
void Advance(const Direction &dir, int step=1)
Moves the point towards a direction.
Point2DInt() noexcept
Default constructor.
#define CRN_DECLARE_CLASS_CONSTRUCTOR(classname)
Declares a class constructor.
xml::Element Serialize(xml::Element &parent) const
Dumps the object to an XML element. Unsafe.
CRN_ALIAS_SMART_PTR(ImageBW)
void Deserialize(xml::Element &el)
Initializes the object from an XML element. Unsafe.