You cannot.
You need four coordinates (two horizontal and two vertical) to uniquely identify two points. Having identified the two points, you can determine the slope (or gradient) as
[difference in vertical coords]/[difference in horizontal coords]
Then use this slope (m) and either of the two points in the equation y = mx + c to determine the value of c.
Chat with our AI personalities