I have a 5 column file
2 649 2 82 1
3 651 1 83 1
2 652 3 84 2
... ... ... ... ...
The first column is n number of points in segment, the second is the x coordinate, the third is delta x, the delta between the current x coordinate and the next one, similarly the fourth column is the y coordinate and fifth is delta y. I need to generate all points in the segments so the output should be, from the data in the first line
649 82
650 82.5
From the data in the second line
651 83
651.33 83.33
651.67 83.67
From the data in the third line
652 84
653.5 85
Any idea How to do it?