18Rect::Rect(glm::vec2
const ¢er, glm::vec2
const &size)
20 std::array<glm::vec2, 4> corners = {
21 glm::vec2{center.x - (size.x / 2), center.y - (size.y / 2)},
22 glm::vec2{center.x + (size.x / 2), center.y - (size.y / 2)},
23 glm::vec2{center.x + (size.x / 2), center.y + (size.y / 2)},
24 glm::vec2{center.x - (size.x / 2), center.y + (size.y / 2)},