Resample with binsize?

ahoj guys! I want to re-sample a generic grid of point (in 2D).
in the example here I have a 4x4 grid (white points), and I’m re-sampling it to 5x4(green points):
https://vvvv.org/sites/default/files/imagecache/large/images/grid-Renderer_2015.10.20-10.59.59.png

how can I generalize this? I mean, interpolate a generic NxM grid in order to have a N1xM1 grid?

https://vvvv.org/sites/default/files/imagecache/large/images/grid_2015.10.20-11.12.25.png

grid.v4p (15.8 kB)

hahaha I did the same question 2 years ago