Math Is Fun Forum
  Discussion about math, puzzles, games and fun.   Useful symbols: √ ∞ ≠ ≤ ≥ ≈ ⇒ ∈ Δ θ ∴ ∑ ∫ π -




Not registered yet?

Post a reply

Go back

Write your message and submit
:) :| :( :D :o ;) :/ :P :lol: :mad: :rolleyes: :cool: | :dizzy :eek :kiss :roflol :rolleyes :shame :down :up :touched :sleep :wave :swear :tongue :what :faint :dunno

Go back

Topic review (newest first)

bob bundy
2013-06-03 16:44:16

hi mathsfailure

Welcome to the forum.

The distance between two points is given by your equation for AC … oints.html

Your calculation for AC is correct.

The formula

enables you to work out how far along the line to go.

Your calculation of t is correct.

Yes, it is correct to deal with the x coordinates and the y coordinates separately like that.  smile

So, ..... not so much of a failure after all.  up


2013-06-03 10:09:24

(x1,y1) + t(x2-x1,y2-y1)

AC = √[(x2-x1)+(y2-y1)]

t = L/AC

(x1,y1) + (L/√[(x2-x1)+(y2-y1)])(x2-x1,y2-y1)

I don't understand how to add to (x1,y1). (a,b) + 1 = ???
I don't understand how to extract a result after substituting L for a distance.

Let me try it anyway.
(x1,y1) = (10, 20)
(x2,y2) = (20, 40)
L = 5

x2-x1 = 10
y2-y1 = 20

AC = √(100 + 400) = 22.4
t = 5/22.4 = 0.223

(10, 20) + 0.223(10, 20)

I'm not sure what to do here but I'll assume I separate the x and y values like this:

x = 10 + (0.223 * 10)
y = 20 + (0.223 * 20)

Final answer:
(12.2, 24.5)

2013-03-06 08:31:07

That was extremely helpful for my game project I am doing, so glad I found this explanation thank you!! up:D

2008-03-25 08:33:57

Let's say that point A is (a,b) and point C is (c,d).

To get from A to C, you need to go (c-a) units to the right, and (d-b) units up.
So the equation of the line that contains points A and C is (a,b) + t(c-a,d-b), where t is some parameter. (This is because every point on the line can be made by starting at point A and then moving some distance parallel to the line AC.)

You can also find the length AC by Pythagoras: AC = √[(c-a)²+(d-b)²].
By introducing a new variable L and saying that t = L/AC, you get the equation of the line joining A and C to be (a,b) + L/AC(c-a,d-b). This time, L indicates the distance from point A (in the direction of C).

Hence, substituting your value of n into L will get your answer.

(Hopefully I've explained that well enough. Feel free to post again if I've been unclear.)

2008-03-25 07:45:57

I have tried to solve this problem for a while now, and I always seem to get the wrong answer. I really need help.

Two points form a line. How do I find the the x and y coordinates of a point that is n units from one point going towards the other point along the line?


A              B                          C

How do you find where B is? I turn the line into a triangle and use similar edges of it to find the answer. However, this do what I need; I want to use some sort of equation/rule to find the location of B.

Board footer

Powered by FluxBB