Search
Let point (x, y) divide the line joining (x1 ,y1 ) and (x2 ,y2 ) in the ratio m:n
1. For internal division
(x,y) = {(m*x2 + n*x1 )/(m+n), (m*y2 + n*y1 )/(m+n)}
2. For external division
(x,y) = {(m*x2 - n*x1 )/(m-n), (m*y2 - n*y1 )/(m-n)}