2021-06-10 12:42:51 +00:00
|
|
|
#pragma once
|
2020-11-27 13:10:09 +00:00
|
|
|
|
2021-06-16 11:59:16 +00:00
|
|
|
#include <SDL2/SDL_rect.h>
|
|
|
|
|
2020-11-27 13:10:09 +00:00
|
|
|
struct Position {
|
2021-05-10 13:14:38 +00:00
|
|
|
float x;
|
|
|
|
float y;
|
2020-11-27 13:10:09 +00:00
|
|
|
};
|
2021-06-16 11:59:16 +00:00
|
|
|
|
|
|
|
inline bool operator==(const SDL_Point & b, const Position & a) {
|
|
|
|
return a.x == b.x && a.y == b.y;
|
|
|
|
}
|