34#ifndef vpRectOriented_h
35#define vpRectOriented_h
43#include <visp3/core/vpImagePoint.h>
44#include <visp3/core/vpRect.h>
50#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
60#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
85 void setSize(
double width,
double height);
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
double getHeight() const
Get the rectangle height.
vpImagePoint getBottomLeft() const
Get the bottom-left corner.
double getOrientation() const
Get the rectangle orientation (rad).
vpImagePoint getBottomRight() const
Get the bottom-right corner.
void setPoints(const vpImagePoint &topLeft, const vpImagePoint &topRight, const vpImagePoint &bottomLeft, const vpImagePoint &bottomRight)
void setCenter(const vpImagePoint ¢er)
Set the center of the rectangle.
vpRectOriented(const vpRectOriented &rect)=default
double getWidth() const
Get the rectangle width.
bool isInside(const vpImagePoint &point) const
Check whether the point is inside the rectangle.
vpRectOriented()
Default constructor.
void setSize(double width, double height)
Set the size of the rectangle : performs a homothety relatively to the rectangle center.
vpImagePoint getTopRight() const
Get the top-right corner.
vpImagePoint getTopLeft() const
Get the top-left corner.
vpImagePoint getCenter() const
Get the rectangle center point.
void setOrientation(double theta)
Set the rectangle orientation (rad).
vpRectOriented & operator=(const vpRectOriented &rect)=default
Defines a rectangle in the plane.