I have two points and I want to know the line which is joining them.
I don’t want to draw the line.
I want to create a matrix with all the points which formed the line.
In the future, I want to solve if two points belong or not to a shape. And this is the first part.
EDIT: Thanks to everyone!! I’ve solved my doubts!
I have to apply the equation of the straight line!
Thanks again!
y = y1 + ((y2 – y1)/(x2 – x1))*(x – x1)
with the usual caveats for avoiding division by 0