I have the coordinates of the 2 end points a and b thanks to which I can draw a line. How can I get the coordinates of all the points of the segment of line starting from point a to point b ?
2026-04-02 22:10:34.1775167834
How to get the coordinates of the point of a line segment
2k Views Asked by user214745 https://math.techqa.club/user/user214745/detail At
3
Let a$(p,q)$, b$(r,s)$. Then, what you want is $$((1-t)p+tr,(1-t)q+ts)$$ where $t$ is a real number such that $0\le t\le 1$.
Setting $t=0$ gives you a and setting $t=1$ gives you b.