2025-10-04 15:13:31 +01:00
|
|
|
#if !defined(LD_GAME_AABB_H_)
|
|
|
|
|
#define LD_GAME_AABB_H_
|
2025-10-04 21:58:14 +01:00
|
|
|
|
|
|
|
|
#include "../core/types.h"
|
2025-10-04 14:57:09 +01:00
|
|
|
#include "../core/macros.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct AABB AABB;
|
|
|
|
|
struct AABB {
|
|
|
|
|
V2f pos;
|
|
|
|
|
V2f size;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2025-10-04 21:58:14 +01:00
|
|
|
function bool AABB_Collide(AABB a, AABB b);
|
|
|
|
|
function bool AABB_Point(AABB a, V2f v);
|
2025-10-04 14:57:09 +01:00
|
|
|
|
2025-10-04 15:13:31 +01:00
|
|
|
#endif // LD_GAME_AABB_H_
|