AABB and rectangle classes