#include "teensy.h" bool ty_pointi_in_recti(ty_Vec2i point, ty_Recti rect) { return point.x > rect.x && point.x < rect.x + rect.w && point.y > rect.y && point.y < rect.y + rect.h; } bool ty_point_in_rect(ty_Vec2 point, ty_Rect rect) { return point.x > rect.x && point.x < rect.x + rect.w && point.y > rect.y && point.y < rect.y + rect.h; } ty_Recti ty_recti_shrink(ty_Recti rect, int p) { rect.x += p; rect.y += p; rect.w -= p * 2; rect.h -= p * 2; return rect; } ty_Recti ty_recti_grow(ty_Recti rect, int p) { rect.x -= p; rect.y -= p; rect.w += p * 2; rect.h += p * 2; return rect; }