I have an ArrayList that has objects that are a latitude, and a longitude. I need to translate them to a two dimensional array.
public void DrawPolygon(ArrayList<PointModel> pModel){
int size=pModel.size();
double [][] latlon= new double[size][size];
for(int i=0;i<pModel.size();i++){
//What to do here, so I can get double[0][0][latitude of first index of arraylist][longitude of first index of array], and so on
}
}
Thank you!