+ /// <summary>\r
+ /// Helper method to get the two neighbor cells of two nearby cells.\r
+ /// </summary>\r
+ /// <param name="a">A point.</param>\r
+ /// <param name="b">Another point.</param>\r
+ /// <returns>An array of two points representing the neighbor cells.</returns>\r
+ public static Point[] GetNeighbors(Point a, Point b)\r
+ {\r
+ Point[] neighbors = new Point[2];\r
+ neighbors[0] = new Point(a.X, b.Y);\r
+ neighbors[1] = new Point(b.X, a.Y);\r
+ return neighbors;\r
+ }\r
+\r
+\r