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
Click For Summary
SUMMARY

The discussion focuses on calculating the coordinates of a point P on a line L defined by endpoints A (x1, y1) and B (x2, y2), given a distance Z from point A. The formula provided is f(x) = y = (y2 - y1)/(x2 - x1)(x - x1) + y1, which utilizes the slope-intercept form. To find point P, the angle of the slope is determined using t = arctan[(y2 - y1)/(x2 - x1)], and the coordinates are calculated as (x1 + (+/-Z)cos(t), f(x1 + (+/-Z)cos(t))). This method allows for determining P's position either up or down the slope based on the specified distance Z.

PREREQUISITES
  • Understanding of coordinate geometry
  • Familiarity with slope-intercept form of a line
  • Knowledge of trigonometric functions, specifically arctan and cosine
  • Basic algebraic manipulation skills
NEXT STEPS
  • Study the derivation of the slope-intercept form of a line
  • Learn about trigonometric functions and their applications in geometry
  • Explore distance formulas in coordinate geometry
  • Research practical applications of linear equations in real-world scenarios
USEFUL FOR

Mathematicians, engineers, students studying geometry, and anyone involved in computational geometry or graphics programming.

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:

Similar threads

  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 10 ·
Replies
10
Views
3K
Replies
7
Views
2K
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K