How to find the x,y elements of a 3D vector when origin, direction, z are known

Click For Summary

Discussion Overview

The discussion revolves around finding the x and y components of a 3D vector when the origin, direction, and a specific z-coordinate are known. Participants explore methods to solve this problem, considering both linear systems and trigonometric approaches.

Discussion Character

  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant suggests that the problem may be solvable as a linear system or using trigonometry, indicating uncertainty about the approach.
  • The same participant describes the origin and direction vectors and expresses the need to find a final point at a specified z-coordinate, questioning their previous attempts at a solution.
  • Another participant provides a mathematical formulation using vectors, expressing the relationship between the origin, direction, and final point, and suggests substituting values to solve for a parameter.
  • A later reply reiterates the mathematical formulation, emphasizing the componentwise addition of vectors and the substitution of numerical values to find the solution.
  • The initial poster acknowledges the elegance of the explanation provided by the second participant, indicating appreciation for the clarity of the mathematical approach.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method to approach the problem, as one participant initially expresses confusion while another provides a clear mathematical framework. The discussion reflects differing levels of understanding and approaches to the problem.

Contextual Notes

There is a lack of clarity regarding the assumptions made in the initial attempts to solve the problem, and the discussion does not resolve the potential methods of solving it.

dsoltyka
Messages
5
Reaction score
0
I believe this is the correct place to post this as I believe I'm going to need to solve this as a linear system, however I suppose it might be solvable using trig as well. However, I've been at it for a while and I'm out of ideas and I think I'm missing something silly.

Consider the following:

Origin = (-1.1258, 100.8336, 2489.9998)
Direction = (-0.1115, 0.0826, -0.9903)

I need to use that information to find a final point in 3D space at an arbitrary Z coordinate, -512. That final point must lie on a line parallel to a line drawn from the origin in the given direction

I had originally tried to treat it like a right triangle and solving for the hypotenuse length, and multiplying that by my direction to get the final location vector, however either that won't work or I did it wrong.

Any ideas?
 
Last edited:
Physics news on Phys.org
Nevermind, I was in fact over thinking the solution. It was simple to solve when I used the formula for a 3D line.
 
Let p denote the vector you call "origin", and let q denote the vector you call "direction". Let r denote your "final point" whose z-coordinate is -512. Then there's a number [itex]\lambda[/itex] such that

[tex]\mathbf{p}+\lambda \mathbf{q}=\mathbf{r},[/tex]

or expressed as matrices,

[tex]\begin{bmatrix}p_1\\ p_2\\ p_3\end{bmatrix}+ \lambda \begin{bmatrix}q_1\\ q_2\\ q_3\end{bmatrix} = \begin{bmatrix}r_1\\ r_2\\ r_3\end{bmatrix}.[/tex]

Addition works componentwise, so we have

[tex]p_3 + \lambda q_3 = -512.[/tex]

Just substitute the numerical values of the third components of p and q, and solve for [itex]\lambda[/itex].

(EDIT: Oh, I see you got there already!)
 
Rasalhague said:
Let p denote the vector you call "origin", and let q denote the vector you call "direction". Let r denote your "final point" whose z-coordinate is -512. Then there's a number [itex]\lambda[/itex] such that

[tex]\mathbf{p}+\lambda \mathbf{q}=\mathbf{r},[/tex]

or expressed as matrices,

[tex]\begin{bmatrix}p_1\\ p_2\\ p_3\end{bmatrix}+ \lambda \begin{bmatrix}q_1\\ q_2\\ q_3\end{bmatrix} = \begin{bmatrix}r_1\\ r_2\\ r_3\end{bmatrix}.[/tex]

Addition works componentwise, so we have

[tex]p_3 + \lambda q_3 = -512.[/tex]

Just substitute the numerical values of the third components of p and q, and solve for [itex]\lambda[/itex].

(EDIT: Oh, I see you got there already!)

I did, but the elegance of your explanation would have made it simpler for sure. Thank you :)
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
Replies
8
Views
1K
Replies
17
Views
3K
Replies
3
Views
2K
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 6 ·
Replies
6
Views
7K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 43 ·
2
Replies
43
Views
8K