#includeIn this example, we create a new EDA_RECT object with the coordinates (0, 0) as the top left corner and (100, 50) as the bottom right corner. We then use the GetEnd function to retrieve the position of the bottom right corner, which is stored in an instance of the wxPoint class, end_pos. Finally, we print the x and y coordinates of end_pos to the console. Package library: The EDA_RECT class is part of the pcbnew library in the KiCad EDA software, which is a set of tools for designing printed circuit boards.#include EDA_RECT rect(0, 0, 100, 50); // create a rectangle object wxPoint end_pos = rect.GetEnd(); // get the position of the bottom right corner // print the position of the bottom right corner std::cout << "Bottom right corner position: (" << end_pos.x << ", " << end_pos.y << ")" << std::endl;