7 lines
195 B
C
7 lines
195 B
C
#include "ui.h"
|
|
|
|
bool aabb(const rect_t *rect, i32 x, i32 y) {
|
|
return x > rect->topleft.x && x <= rect->topleft.x + rect->w &&
|
|
y > rect->topleft.y && y <= rect->topleft.y + rect->h;
|
|
}
|