You are given two arrays denoting x- and y-coordinates of a setof points in a plane. For plotting the point set, we need to knowthe x- and y-coordinates of the smallest rectangle containing thepoints. How can you obtain these values? The code so far…
public class SmallestRectangle {
/**
Calculates and prints the x and y coordinates of the smallestrectangle covering points in datapoints
*/
public void coordinates_of_rectangle(double[][] datapoints){
double[] UpperRight = new double[2]; // UpperRight[0] = xcoordinate, UpperRight[1] = y coordinate
double[] UpperLeft = new double[2]; // UpperLeft[0] = xcoordinate, UpperLeft[1] = y coordinate
double[] LowerRight = new double[2]; // LowerRight[0] = xcoordinate, LowerRight[1] = y coordinate
double[]
PayPal Gateway not configured
PayPal Gateway not configured