static bool pointToRect(Vec2 p, AABB rect) => p.x >= rect.left && p.x <= rect.right && p.y >= rect.top && p.y <= rect.bottom;