 |
Visual Servoing Platform
version 3.3.0
|
40 #include <visp3/core/vpConfig.h>
41 #include <visp3/core/vpImagePoint.h>
42 #include <visp3/core/vpRect.h>
139 double i1 = ip1.
get_i();
140 double j1 = ip1.
get_j();
141 double i2 = ip2.
get_i();
142 double j2 = ip2.
get_j();
144 return ((std::fabs(i1 - i2) <= std::fabs(
vpMath::maximum(i1, i2)) * std::numeric_limits<double>::epsilon()) &&
145 (std::fabs(j1 - j2) <= std::fabs(
vpMath::maximum(j1, j2)) * std::numeric_limits<double>::epsilon()));
159 double i1 = ip1.
get_i();
160 double j1 = ip1.
get_j();
161 double i2 = ip2.
get_i();
162 double j2 = ip2.
get_j();
164 return ((std::fabs(i1 - i2) > std::fabs(
vpMath::maximum(i1, i2)) * std::numeric_limits<double>::epsilon()) ||
165 (std::fabs(j1 - j2) > std::fabs(
vpMath::maximum(j1, j2)) * std::numeric_limits<double>::epsilon()));
VISP_EXPORT vpImagePoint operator+(const vpImagePoint &ip1, double offset)
VISP_EXPORT bool operator==(const vpImagePoint &ip1, const vpImagePoint &ip2)
VISP_EXPORT vpImagePoint operator-(const vpImagePoint &ip1, unsigned int offset)
VISP_EXPORT vpImagePoint operator/(const vpImagePoint &ip1, double scale)
VISP_EXPORT bool operator!=(const vpImagePoint &ip1, const vpImagePoint &ip2)
VISP_EXPORT vpImagePoint operator+=(const vpImagePoint &ip1, const vpImagePoint &ip2)
vpImagePoint & operator/=(double scale)
VISP_EXPORT std::ostream & operator<<(std::ostream &os, const vpImagePoint &ip)
VISP_EXPORT vpImagePoint operator-(const vpImagePoint &ip1, double offset)
bool inRectangle(const vpRect &rect) const
static vpRect getBBox(const std::vector< vpImagePoint > &ipVec)
vpImagePoint & operator+=(const vpImagePoint &ip)
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
VISP_EXPORT vpImagePoint operator+(const vpImagePoint &ip1, unsigned int offset)
VISP_EXPORT vpImagePoint operator+(const vpImagePoint &ip1, int offset)
VISP_EXPORT vpImagePoint operator+(const vpImagePoint &ip1, const vpImagePoint &ip2)
VISP_EXPORT vpImagePoint operator-(const vpImagePoint &ip1, const vpImagePoint &ip2)
VISP_EXPORT vpImagePoint operator*(const vpImagePoint &ip1, double scale)
static Type maximum(const Type &a, const Type &b)
VISP_EXPORT vpImagePoint operator-(const vpImagePoint &ip1, int offset)
Defines a rectangle in the plane.