1 #ifndef OPENPOSE_CORE_RECTANGLE_HPP
2 #define OPENPOSE_CORE_RECTANGLE_HPP
65 void recenter(
const T newWidth,
const T newHeight);
86 Rectangle<T>
recenter(
const Rectangle<T>& rectangle,
const T newWidth,
const T newHeight);
89 #endif // OPENPOSE_CORE_RECTANGLE_HPP
Point< T > center() const
Rectangle< T > & operator=(const Rectangle< T > &rectangle)
Rectangle(const T x=0, const T y=0, const T width=0, const T height=0)
T y
Definition: rectangle.hpp:13
void recenter(const T newWidth, const T newHeight)
Rectangle< T > operator/(const T value) const
Rectangle< T > & operator/=(const T value)
std::string toString() const
Point< T > bottomRight() const
Rectangle< T > operator*(const T value) const
T height
Definition: rectangle.hpp:15
Point< T > topLeft() const
Definition: rectangle.hpp:53
T width
Definition: rectangle.hpp:14
T x
Definition: rectangle.hpp:12
Rectangle< T > & operator*=(const T value)
Definition: rectangle.hpp:10
Rectangle< T > recenter(const Rectangle< T > &rectangle, const T newWidth, const T newHeight)
T area() const
Definition: rectangle.hpp:60