34#ifndef VP_RECT_ORIENTED_H
35#define VP_RECT_ORIENTED_H
37#include <visp3/core/vpConfig.h>
38#include <visp3/core/vpImagePoint.h>
39#include <visp3/core/vpRect.h>
51#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
61#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
69#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
70 VP_EXPLICIT
operator vpRect();
88 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)
vpRectOriented & operator=(const vpRectOriented &)=default
void setCenter(const vpImagePoint ¢er)
Set the center of the rectangle.
vpRectOriented()
Default constructor.
double getWidth() const
Get the rectangle width.
bool isInside(const vpImagePoint &point) const
Check whether the point is inside the rectangle.
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.
vpRectOriented(const vpRectOriented &)=default
vpImagePoint getCenter() const
Get the rectangle center point.
void setOrientation(double theta)
Set the rectangle orientation (rad).
Defines a rectangle in the plane.