CellsAutomate.Tools.CommonMethods.GetPoints C# (CSharp) Method

GetPoints() public static method

public static GetPoints ( Point position ) : System.Drawing.Point[]
position System.Drawing.Point
return System.Drawing.Point[]
        public static Point[] GetPoints(Point position)
        {
            int i = position.X;
            int j = position.Y;
            return new[] { new Point(i + 1, j), new Point(i, j + 1), new Point(i - 1, j), new Point(i, j - 1) };
        }