// Creating a point at (3, 4) Point2D p(3, 4); // Calculating the distance between two points Point2D q(1, 2); double distance = p.distanceTo(q); // Moving a point by a given displacement p.move(2, 1);These examples demonstrate some common operations that can be performed on Point2D objects, such as creating a new point, calculating the distance between two points, and moving a point to a new position. The Point2D data type is not part of the standard C++ library, but it may be included in third-party libraries or packages that are designed for working with two-dimensional geometry. Some popular packages that include Point2D functionality include Boost.Geometry and CGAL (Computational Geometry Algorithms Library).