Files
Lab9_UNIX/core/Square.h
T
2026-06-05 11:45:04 +03:00

30 lines
407 B
C++

#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;
};