first commit

This commit is contained in:
2026-06-05 11:45:04 +03:00
commit b457544071
29 changed files with 1725 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
#pragma once
#include "Vector2.h"
#include "Size.h"
class Square
{
public:
Square(
const Vector2& position,
const Size& size
);
bool hit(
const Vector2& point
) const;
bool collide(
const Square& other
) const;
Vector2 top_left() const;
Vector2 bottom_right() const;
private:
Vector2 m_Position;
Size m_Size;
};