(Geometry: the bounding rectangle) A bounding rectangle is the minimum rectangle that encloses a set of points in a two-dimensional plane, as shown in Figure 1d. Write a method that returns a bounding rectangle for a set of points in a two-dimensional plane, as follows:

FIGURE 1 (d) Points are enclosed inside a rectangle.
public static MyRectangle2D getRectangle(double[][] points)
The Rectangle2D class is defined in Programming Exercise Write a test program that prompts the user to enter five points and displays the bounding rectangle’s center, width, and height. Here is a sample run:
![]()
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.