/// <summary> /// Returns distance metric for a test at every orientation. /// </summary> /// <param name="map">Map data</param> /// <param name="test">Test to check</param> /// <returns>Distances for a test to all map at an orientation</returns> public List <List <double> > GetDistWithDirec(List <List <double> > map, List <double> test) { List <List <double> > retval = new List <List <double> >(); List <List <double> > tempMap = new List <List <double> >(map); int numdirecs = MainData.NumDirecs(); for (int i = 0; i < numdirecs; i++) { List <double> temp = GetDistancesFromPoint(test, tempMap); retval.Add(temp); // Break if north only if (NorthCheckBox.Checked) { break; } // Rotate Map int count = tempMap.Count; for (int j = 0; j < count; j++) { List <double> current = tempMap[j]; double front = current[0]; current.RemoveAt(0); current.Add(front); tempMap[j] = current; } } return(retval); }