public static double[][] getArrayCoordinates(Point[] array){
        int n = array.length;
        int m = array[0].getPointDimensions();
        double[][] cc = new double[m][n];
        for(int i=0; i<n; i++){
           for(int j=0; j<m; j++){
               cc[j][i] = (array[i].getPointCoordinates())[j];
           }
        }
        return cc;
    }