If I understand correctly, there is a line from (10,10) to (600,320). Let's call these (x1,y1) and (x2,y2).
The line needs to be extended to x=0 and x=640, and divided at x=320.
This implies finding y for these 3 values of x.
You need to know the equation which describes the line. For a straight line, this will be in the form of:
y = slope*x + intercept
i.e. for all points on the line, this formula will be true.
Slope is just:
(change in y) / (change in x)
So:
y = ((y2-y1) / (x2-x1) * x) + intercept
Rearrange:
intercept = y - ((y2-y1) / (x2-x1) * x)
Substitute in x and y from either one of your known points. (x1,y1) used here:
intercept = y1 - ((y2-y1) / (x2-x1) * x1)
Subsitute the expressions you now have for slope and intercept back into the line equation:
y = slope*x + intercept
And you can then find y for any value of x.