LINE in 3D SPACE

  • Thread starter ronatu
  • Start date
  • #1
1
0
I have a simple question.

Assume we have 2 points in 3D space with known coordinates:
#1 (x1,y1,z1)
and
#2 (x2,y2,z2)
How to find coordinates of point #3 (x,y,z) belongs to the same line with known distance D from point#1?
Equation for transformation will be helpful...

Thanks in advance.
 

Answers and Replies

  • #2
1,425
1
A line in 3d space can be written as two functions that goes through the origin has two equations:

y = mx

and

z/(y^2 + x^2)^1/2 = +- C

Where C is a constant.

Finally the distance between two points in 3d space is given by

(x^2 + y^2 + z^2)^1/2

Work around that...
 
Last edited:
  • #3
HallsofIvy
Science Advisor
Homework Helper
41,833
961
For example, find the points on the line through (1, 0, 1) and (2, 2, 2) that are a distance d from (1, 0, 1). The vector from (1, 0, 1) to (2, 2, 2) is (2-1)i+ (2-0)j+ (2-1)k= i+ 2j+ k so parametric equations of the line are x= t+ 1, y= 2t, z= t+ 1. The distance from any point (x, y, z) to (1, 0, 1) is [itex]\sqrt{(x-1)^2+ y^2+ (z-1)^2}[/itex]. Replace x, y, z with their expressions in terms of the parameter t, set equal to d and solve for t:
[tex]\sqrt{(t+1-1)^2+ (2t)^2+ (t+1-1)^2}= \sqrt{4t^2}= 2|t|= d[/itex]
There are two solutions because there are two such points, one on either side of (1, 0, 1).
 

Related Threads on LINE in 3D SPACE

Replies
3
Views
11K
  • Last Post
Replies
4
Views
12K
  • Last Post
Replies
3
Views
4K
  • Last Post
Replies
3
Views
21K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
2
Views
889
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
3
Views
3K
  • Last Post
Replies
3
Views
2K
Replies
3
Views
12K
Top