35 #include <visp3/core/vpConfig.h>
36 #include <visp3/core/vpImagePoint.h>
37 #include <visp3/core/vpMath.h>
38 #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())));
156 double i1 = ip1.
get_i();
157 double j1 = ip1.
get_j();
158 double i2 = ip2.
get_i();
159 double j2 = ip2.
get_j();
161 return ((std::fabs(i1 - i2) > (std::fabs(
vpMath::maximum(i1, i2)) * std::numeric_limits<double>::epsilon())) ||
162 (std::fabs(j1 - j2) > (std::fabs(
vpMath::maximum(j1, j2)) * std::numeric_limits<double>::epsilon())));
bool operator==(const vpArray2D< double > &A) const
bool operator!=(const vpArray2D< Type > &A) const
friend std::ostream & operator<<(std::ostream &s, const vpArray2D< Type > &A)
vpColVector operator*(const double &x, const vpColVector &v)
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
vpImagePoint & operator/=(double scale)
static double distance(const vpImagePoint &iP1, const vpImagePoint &iP2)
vpImagePoint & operator+=(const vpImagePoint &ip)
bool inRectangle(const vpRect &rect) const
VISP_EXPORT vpImagePoint operator+=(const vpImagePoint &ip1, const vpImagePoint &ip2)
VISP_EXPORT vpImagePoint operator+(const vpImagePoint &ip1, const vpImagePoint &ip2)
static vpRect getBBox(const std::vector< vpImagePoint > &ipVec)
VISP_EXPORT vpImagePoint operator/(const vpImagePoint &ip1, double scale)
static double sqrDistance(const vpImagePoint &iP1, const vpImagePoint &iP2)
VISP_EXPORT vpImagePoint operator-(const vpImagePoint &ip1, const vpImagePoint &ip2)
static Type maximum(const Type &a, const Type &b)
static double sqr(double x)
Defines a rectangle in the plane.