Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I have a point for example A (0,0) and B(10,10). Now I want to calculate a third point which lies in the same direction. I want to calculate point (x3,y3). I need a formula to calculate the new point. Please use (x0, y0) for (0,0) and (x1, y1) for (x1, y1) for answering. Thanks.

share|improve this question

3 Answers 3

Given two distinct points $A$ and $B$, you can use the idea of weighted average to immediately write down a parametric formula for the line through $A$ and $B$: $A(1-t)+Bt$. If $t=0$, you get $A$, if $t=1$, you get $B$, for other values of $t$ you get other points on that line.

share|improve this answer

The line passing through points $(x_0, y_0)$ and $(x_1, y_1)$ has equation $$ y-y_0 = \big(\frac{y_1-y_0}{x_1-x_0}\big)(x-x_0) $$ which you can use to compute new values of $x$ or $y$.
You must be sure that $x_0$ is not equal to $x_1$.

share|improve this answer
    
How we can use it to get third point? –  Sami May 26 at 12:50
    
@Sami, The values of $x_0$, $y_0$, $x_1$ and $y_1$ are known so my equation is really just in terms of $x$ and $y$. Choose a value for $x$, plug it in the equation and you will get the corresponding value of $y$. Alternatively, you can plug in a value of $y$ and find the corresponding $x$. –  Peter Phipps May 26 at 13:49

Let $\,\overrightarrow{AB}:= B-A=(10,10)$, so the line determined by these two points is, in vectorial parametric form, $\,A+t\overrightarrow{AB}=(10t,10t)\,,\,t\in\mathbb{R}$ .

Finally, if you want a third vector in the same direction from A to B just choose $\,t>0\,$

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.