Test vpImagePoint functionalities.
#include <visp/vpImagePoint.h>
#include <iostream>
int main()
{
std::cout << "We define ip1 with coordinates: "
<< ip1 << std::endl;
std::cout << "We define ip2 with coordinates: "
<< ip2 << std::endl;
std::cout << "We define ip3 with coordinates: "
<< ip3 << std::endl;
if (ip1 == ip2) {
std::cout << "ip1 == ip2" << std::endl;
}
else {
std::cout << "ip1 != ip2 (bad result)" << std::endl;
return -1;
}
if (ip1 != ip2) {
std::cout << "ip1 != ip2 (bad result)" << std::endl;
return -1;
}
else {
std::cout << "ip1 == ip2" << std::endl;
}
if (ip1 == ip3) {
std::cout << "ip1 == ip3 (bad result)" << std::endl;
return -1;
}
else {
std::cout << "ip1 != ip3" << std::endl;
}
if (ip1 != ip3) {
std::cout << "ip1 != ip3" << std::endl;
}
else {
std::cout << "ip1 == ip3 (bad result)" << std::endl;
return -1;
}
return 0;
}