Finding the Equation of a 3D Line from Two Points

  • Thread starter Thread starter tandoorichicken
  • Start date Start date
  • Tags Tags
    3d Line Points
Click For Summary
To find the equation of a line between two points in three-dimensional space, the general form is c(t) = (P-Q)t + P or c(t) = (P-Q)t + Q, where P and Q are position vectors of the points. The choice of parameterization does not affect the line's validity, as long as it remains consistent. The equation c(t) = (P-Q)t + P yields point P when t=0 and point Q when t=-1, which is a valid representation. It’s important to note that since a line is one-dimensional, multiple equations are needed to describe it in three-dimensional space, typically resulting in three parametric equations for x, y, and z. This discussion emphasizes the flexibility in parameterization while ensuring the line's representation remains accurate.
tandoorichicken
Messages
245
Reaction score
0
How do you find the equation of a line between two points in three dimensional space? I sort of forgot. =\
 
Physics news on Phys.org
c(t) = (P-Q)t+P
 
0rthodontist said:
c(t) = (P-Q)t+P

Shouldn't that be c(t) = (P-Q)t+Q

because at t = 0 you should get Q, and at t = 1 you should get P which isn't what happens in your equation.
 
It really doesn't matter how you parametrize it so long as it is the same line. c(t) = .3455(P-Q)t+(P+Q)/2 is equally valid.
 
d_leet said:
Shouldn't that be c(t) = (P-Q)t+Q

because at t = 0 you should get Q, and at t = 1 you should get P which isn't what happens in your equation.

Orthodontist's form, c= (P- Q)t+ P, gives P when t=0 and Q when t= -1. That perfectly valid.

By the way, Tandoorichicken, since a line is one-dimensional, in a three dimensional space you need more than one equation. Orthodontist gave a "vector" equation where P and Q are the position vectors of two points and t is a parameter. Writing that in component form gives three parametric equations. Given the single variable t, you can calculate x, y, and z.
 
Last edited by a moderator:

Similar threads

Replies
17
Views
2K
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
8
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 14 ·
Replies
14
Views
710
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
717