This commit is contained in:
2026-06-24 22:53:23 +03:00
parent eb975537d9
commit 596698ee8c
4 changed files with 17 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
#pragma once
#include "line.h"
#include "types.h"
#include "types.hpp"
#include <stdio.h>
#include <vector>
+1 -1
View File
@@ -1,4 +1,4 @@
#include "types.h"
#include "types.hpp"
#include <vector>
+7
View File
@@ -16,4 +16,11 @@ struct Position {
Position() : x(0), y(0) {}
Position(int x, int y) : x(x), y(y) {}
bool operator==(const Position& other) const {
return ((this->x == other.x) && (this->y == other.y));
}
bool operator!=(const Position& other) const {
return !(*this == other);
}
};