26 #ifndef LIBRARIES_DATA_RECTANGLE_H_ 27 #define LIBRARIES_DATA_RECTANGLE_H_ 38 explicit Rectangle(T &topLeftCorner, T &bottomRightCorner) :
39 tl(
std::move(topLeftCorner)),
br(
std::move(bottomRightCorner)) {
40 static_assert(std::is_base_of<Point, T>::value,
"T must inherit from Point");
constexpr T getCenter() const
constexpr T getSize() const
Rectangle(T &topLeftCorner, T &bottomRightCorner)