Find a point on a line given, distance from startpoint

  • Context: High School 
  • Thread starter Thread starter boston
  • Start date Start date
  • Tags Tags
    Line Point
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 5K views
boston
Messages
1
Reaction score
0
Hi,

I have a line L stretching from point A to ponit B. The startpoint A has the coordinates x1, y1 and endpoint B has the coordinates x2, y2.

I want a formula for calculating the coordinates for point P. Point P lies on the line L and with the distance Z from startpoint A.

BR Boston
 
Mathematics news on Phys.org
your equation is f(x)=y=(y2-y1)/(x2-x1)(x-x1) + y1 [this is just using y-y0 = m(x-x0)]

Now, a distance Z should be determined by a displacement +/-Z. There are two answers as written, if it is meant "in the direction of b" then replace +/-Z with just Z

Let t = arctan[(y2-y1)/(x2-x1)], this is the angle of the slope.

Then replace x in f(x) with x1+(+/-Z)cos(t). That is, you are finding y when x is at the point when you are +/-Zcos(t) from the coordinate x1. That is how much it changes when you move up or down the slope a displacement of +/-Z. Your point is (x1+(+/-Z)cos(t), f(x1+(+/-Z)cos(t))
 
Last edited: