title: Dynamic Neighborhood Coordinates
body: <p>For an image filter I want to generate a variable neighborhood.
  This is how my neighborhood looks like at the moment, it's a moore neighborhood.</p>
  
  <pre><code>private Point[] neighborhood = new Point[]
                                                 {
                                                     new Point(-1,-1),
                                                     new Point(0,-1),
                                                     new Point(1,-1),
  
                                                     new Point(-1,0),
                                                     new Point(1,0),
  
                                                     new Point(-1,1), 
                                                     new Point(0,1), 
                                                     new Point(1,1), 
                                                 };
  </code></pre>
  
  <p>When I want to change the size of the neighborhood this can become quite complicated.
  I want a funktion that returns all coordinates, like generateNeighborhood(8) would return this array of Points. Whats the best way to do this?</p>