#include #include typedef CGAL::Simple_cartesian Kernel; typedef Kernel::Point_2 Point_2; int main() { Point_2 a(1,1), b(9, 9); std::cout << "Point a = " << a << std::endl; std::cout << "Point b = " << b << std::endl; std::cout << "Square distance a-b = " << CGAL::squared_distance(a, b) << std::endl; std::cout << "Midpoint of a-b = " << CGAL::midpoint(a, b) << std::endl; return 0; }