1 #ifndef OPENPOSE_CORE_RECTANGLE_HPP
2 #define OPENPOSE_CORE_RECTANGLE_HPP
67 void recenter(
const T newWidth,
const T newHeight);
88 Rectangle<T>
recenter(
const Rectangle<T>& rectangle,
const T newWidth,
const T newHeight);
93 #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:14
void recenter(const T newWidth, const T newHeight)
#define OVERLOAD_C_OUT(className)
Definition: macros.hpp:61
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:16
Point< T > topLeft() const
Definition: rectangle.hpp:55
T width
Definition: rectangle.hpp:15
T x
Definition: rectangle.hpp:13
Rectangle< T > & operator*=(const T value)
Definition: rectangle.hpp:11
Rectangle< T > recenter(const Rectangle< T > &rectangle, const T newWidth, const T newHeight)
T area() const
Definition: rectangle.hpp:62
std::string string
Definition: cl2.hpp:574