Quick math question

Jay59express

Senior member
Jun 7, 2000
481
0
0
This is kind of embarassing, but I have what I think is a fairly simple math question to ask:

Given a line in a 2D plane that I know the (x,y) coordinates of two points (A and C), what is the equation to find a point (B) between them. I know the distance between A and C as well as between A and B and also B and C.

I know the equation for the midpoint, but would like to find the X,Y of any point between A and C.

Thanks!
 
Feb 19, 2001
20,155
23
81
Slow way:

I'm sure there's faster, and a lot of ppl aren't really reading your problem correctly.

Get a slope function in there. Solve for the coordinates... AC and BC are the same slope. Then calculate distance. The total distance = AC, etc...
 

Kelemvor

Lifer
May 23, 2002
16,928
8
81
hmm

Gotta find the ratio of the angle that makes up the line and then just find any 2 points with the right ratio.

Basically take one point and pretend it's right at the X,Y junction (0,0) then find where the other point is in relation to that. Get the ratio, then find any point with that ratio but then add the first coordinate to it.... or something like that.
 

akenbennu

Senior member
Jul 24, 2005
713
286
136
Use the slope intercept form of the equation.

y= mx + b where m is the slope of the line and b is the y-intercept

Let A be described by point (x1, y1)
Let C be described by point (x2, y2)

m = (y2-y1)/(x2-x1)

You now have y = ((y2-y1)/(x2-x1))*x + b

Substitute one of your known points into the equation and solve it for b, then you have the equation describing any point on the line containing points A and C.
 

Jay59express

Senior member
Jun 7, 2000
481
0
0
Thanks akenbennu, but I don't have either an X or a Y for point B, only its distance from point A and point C
 

dullard

Elite Member
May 21, 2001
25,488
3,980
126
Let (xa, ya) be the location of point A.
Let (xc, yc) be the location of point C.

The midpoint, B, is halfway from A to C. Thus B is at: ([xa+xc]/2, [ya+yc]/2).

It is as simple as that. Extend that logic for any other fraction of a distance from A to C. Do you need me to do it for you?

Edit: I'll do it anyways.

Start at point A. Suppose you want to go a distance dAB from A. Suppose that the total distance is dAC. Thus, you are going a fraction, dAB/dAC, from A to C. So your point B starts at (xa, ya) and moves a distance dAB/dAC in the direction of C. Point B is at:

(xa, ya) + (dAB/dAC*[xc-xa], dAB/dAC*[yc-ya])

Adding them together, point B is at:

(xa+dAB/dAC*[xc-xa], ya+dAB/dAC*[yc-ya])
 

akenbennu

Senior member
Jul 24, 2005
713
286
136
You can use the ratios to find the distances.

Distance of line AB/distance of line AC = (x1-xb)/(x1-x2)

Solve for xb. Plug xb back into the equation in the form y=mx+b for the line to get yb. You now have the coordinated for point B (xb,yb)
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |