40 #include <visp3/core/vpConfig.h> 41 #include <visp3/core/vpImagePoint.h> 42 #include <visp3/core/vpRect.h> 43 #include <visp3/core/vpMath.h> 136 double i1 = ip1.
get_i();
137 double j1 = ip1.
get_j();
138 double i2 = ip2.
get_i();
139 double j2 = ip2.
get_j();
141 return ((std::fabs(i1 - i2) <= std::fabs(
vpMath::maximum(i1, i2)) * std::numeric_limits<double>::epsilon()) &&
142 (std::fabs(j1 - j2) <= std::fabs(
vpMath::maximum(j1, j2)) * std::numeric_limits<double>::epsilon()));
154 double i1 = ip1.
get_i();
155 double j1 = ip1.
get_j();
156 double i2 = ip2.
get_i();
157 double j2 = ip2.
get_j();
159 return ((std::fabs(i1 - i2) > std::fabs(
vpMath::maximum(i1, i2)) * std::numeric_limits<double>::epsilon()) ||
160 (std::fabs(j1 - j2) > std::fabs(
vpMath::maximum(j1, j2)) * std::numeric_limits<double>::epsilon()));
static vpRect getBBox(const std::vector< vpImagePoint > &ipVec)
vpImagePoint & operator+=(const vpImagePoint &ip)
bool inRectangle(const vpRect &rect) const
friend VISP_EXPORT bool operator!=(const vpImagePoint &ip1, const vpImagePoint &ip2)
static Type maximum(const Type &a, const Type &b)
friend VISP_EXPORT vpImagePoint operator*(const vpImagePoint &ip1, double scale)
static double sqrDistance(const vpImagePoint &iP1, const vpImagePoint &iP2)
friend VISP_EXPORT bool operator==(const vpImagePoint &ip1, const vpImagePoint &ip2)
static double distance(const vpImagePoint &iP1, const vpImagePoint &iP2)
static double sqr(double x)
friend VISP_EXPORT std::ostream & operator<<(std::ostream &os, const vpImagePoint &ip)
friend VISP_EXPORT vpImagePoint operator-(const vpImagePoint &ip1, const vpImagePoint &ip2)
friend VISP_EXPORT vpImagePoint operator/(const vpImagePoint &ip1, double scale)
Defines a rectangle in the plane.
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
friend VISP_EXPORT vpImagePoint operator+(const vpImagePoint &ip1, const vpImagePoint &ip2)
vpImagePoint & operator/=(double scale)