Formula
$$x_0=\dfrac{x_1+\lambda x_2}{1+\lambda},\,\,\,\, y_0=\dfrac{y_1+\lambda y_2}{1+\lambda}$$
Variables
A(x1,y1)
→
First endpoint
B(x2,y2)
→
Second endpoint
$$x_0=\dfrac{x_1+\lambda x_2}{1+\lambda},\,\,\,\, y_0=\dfrac{y_1+\lambda y_2}{1+\lambda}$$