SQUAREGRID Generate equally spaces points in plane.

   usage
   PTS = squareGrid(BOUNDS, ORIGIN, SIZE)
   generate points, lying in the window defined by BOUNDS (=[xmin ymin
   xmax ymax]), starting from origin with a constant step equal to size.
   
   Example
   PTS = squareGrid([0 0 10 10], [3 3], [4 2])
   will return points : 
   [3 1;7 1;3 3;7 3;3 5;7 5;3 7;7 7;3 9;7 9];



   TODO: add possibility to use rotated grid

   ---------

   author : David Legland 
   INRA - TPV URPOI - BIA IMASTE
   created the 06/08/2005.

Package: matgeom